Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2013 19:02:42 +0700
From:      Eugene Grosbein <egrosbein@rdtc.ru>
To:        h bagade <bagadeh@gmail.com>
Cc:        freebsd-net@freebsd.org, John-Mark Gurney <jmg@funkthat.com>, Jack Vogel <jfvogel@gmail.com>
Subject:   Re: how to completely makes an interface down?
Message-ID:  <519227E2.2090801@rdtc.ru>
In-Reply-To: <CAARSjE1qZcn0AiMiU5L8Bd0SVFM=f0VvKxMgor56naNFt46hug@mail.gmail.com>
References:  <CAARSjE0-pFR0yf7xbycPkjrZCvokGp=r7Ls=HeP83t60nhGVVg@mail.gmail.com> <20130124195056.GB1410@funkthat.com> <CAARSjE1qZcn0AiMiU5L8Bd0SVFM=f0VvKxMgor56naNFt46hug@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26.01.2013 14:15, h bagade wrote:

> I've tried the command on freebsd 8.2 with em card but doesn't work as you
> mentioned.
> I need such an operation to disable the connection and yes, not the led but
> the link establishment itself. Is there a way to have this option on em and
> igb drivers on freebsd 8.2?

I've needed this feature several years ago so I made a patch for igb(4) and em(4) drivers.
The patch introduces new per-interface sysctls with default zero values:

dev.em.X.down_disables_link
dev.igb.X.down.disables_link

With this patch, sysctl dev.em.0.down_disables_link=1 makes "ifconfig em0 down" bring link down.
For LACP mode this feature is very useful as it makes LACP peer reconfigure itself quickly.

For 8.2:
http://www.grosbein.net/freebsd/patches/em_sysctl.diff.gz
http://www.grosbein.net/freebsd/patches/igb_sysctl.diff.gz

For newer versions (8.3 and 9.1):

http://www.grosbein.net/freebsd/patches/em_sysctl-8.3.diff.gz
http://www.grosbein.net/freebsd/patches/igb_sysctl-8.3.diff.gz





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?519227E2.2090801>