Date: Tue, 14 May 2013 13:03:31 -0700 From: Adrian Chadd <adrian@freebsd.org> To: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me> Cc: h bagade <bagadeh@gmail.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, John-Mark Gurney <jmg@funkthat.com>, Eugene Grosbein <egrosbein@rdtc.ru>, Jack Vogel <jfvogel@gmail.com> Subject: Re: how to completely makes an interface down? Message-ID: <CAJ-Vmomw9ougEvYQ6LjHJ-ZgHCPZhuZe0sXboNy37_dqOa_Bxw@mail.gmail.com> In-Reply-To: <CA%2Bq%2BTcof57JMtUgo%2BBDgW-TS5fyYe5nJx4wYx_oHnmOywN3=MA@mail.gmail.com> References: <CAARSjE0-pFR0yf7xbycPkjrZCvokGp=r7Ls=HeP83t60nhGVVg@mail.gmail.com> <20130124195056.GB1410@funkthat.com> <CAARSjE1qZcn0AiMiU5L8Bd0SVFM=f0VvKxMgor56naNFt46hug@mail.gmail.com> <519227E2.2090801@rdtc.ru> <CA%2Bq%2BTcof57JMtUgo%2BBDgW-TS5fyYe5nJx4wYx_oHnmOywN3=MA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
... we have flow-control in ifconfig, don't we? On 14 May 2013 11:42, Olivier Cochard-Labb=E9 <olivier@cochard.me> wrote: > On Tue, May 14, 2013 at 2:02 PM, Eugene Grosbein <egrosbein@rdtc.ru> wrot= e: >> >> 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=3D1 makes "ifconfig = em0 down" bring link down. >> For LACP mode this feature is very useful as it makes LACP peer reconfig= ure itself quickly. >> > > Great ! > > but what about adding a generic ifconfig mediaopt option in place of > adding another new sysctl ? > Something like "poweroff", "linkdown" or your "disablelink" as example. > > Because with this kind of sysctl values we can imagine a > non-homogeneous future: We have already this problem with flow-control > on em(4). > The sysctl option for configuring flowcontrol on em(4) (no idea how to > configure it with other drivers) are: > - dev.em.0.fc (if chipset depends of if_em.c) > - dev.em.0.flow_control (if chipset depends of if_lem.c) > > =3D> By using ifconfig like "ifconfig INTERFACE mediaopt flowcontrol > off|rx|tx|full" we could prevent different sysctl names between all > NIC drivers. > > Regards, > > Olivier > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmomw9ougEvYQ6LjHJ-ZgHCPZhuZe0sXboNy37_dqOa_Bxw>