Date: Thu, 21 Sep 2006 12:32:56 +0200 From: "Slawek Zak" <slawek.zak@gmail.com> To: "Gleb Smirnoff" <glebius@freebsd.org>, "Slawek Zak" <slawek.zak@gmail.com>, freebsd-net@freebsd.org Subject: Re: Rapid link state changes on bge(4) interface Message-ID: <787bbe1c0609210332p759e22dah8601313436754458@mail.gmail.com> In-Reply-To: <20060915141710.GR27667@FreeBSD.org> References: <787bbe1c0609130609l33fb29dawc465b7bcfb2f430e@mail.gmail.com> <20060915141710.GR27667@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/15/06, Gleb Smirnoff <glebius@freebsd.org> wrote: > On Wed, Sep 13, 2006 at 03:09:56PM +0200, Slawek Zak wrote: > S> I'm testing network failover on IBM BladeCenter running FreeBSD 6.1 > S> STABLE for Sep 6th. > S> > S> I suspect a problem with link state change detection in bge code. When > S> I disable internal port on chassis built-in ethernet switch, kernel > S> floods syslog with messages about link state changes and coalescing > S> them. Log snippet follows: > S> > S> Sep 13 14:58:28 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:28 w3-6 kernel: bge1: link state changed to UP > S> Sep 13 14:58:29 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:29 w3-6 kernel: bge1: link state changed to UP > S> Sep 13 14:58:29 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:29 w3-6 kernel: bge1: 4 link states coalesced > S> Sep 13 14:58:29 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:29 w3-6 kernel: bge1: 11 link states coalesced > S> Sep 13 14:58:29 w3-6 kernel: bge1: link state changed to UP > S> Sep 13 14:58:30 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:30 w3-6 kernel: bge1: 3 link states coalesced > S> Sep 13 14:58:30 w3-6 kernel: bge1: link state changed to UP > S> Sep 13 14:58:30 w3-6 kernel: bge1: 7 link states coalesced > S> Sep 13 14:58:30 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:30 w3-6 kernel: bge1: 4 link states coalesced > S> Sep 13 14:58:30 w3-6 kernel: bge1: link state changed to DOWN > S> Sep 13 14:58:30 w3-6 kernel: bge1: 2 link states coalesced > S> > S> As you can see, messages are generated in rapid succession and > S> therefore any probing of link state change by ng_one2many for > S> interface failover is meaningless. Ethernet switch doesn't register > S> and log any interface state changes after disabling this port. LS20 > S> blades use chipset 8850. My firmware is 3.38, full changelog, if it is > S> of any help, is here: > S> > S> http://www-307.ibm.com/pc/support/site.wss/license.do?filename=pc_servers/brcm_fw_nic_12021_anyos_anycpu.chg > S> > S> Any ideas what might be wrong? > > Please try to add hw.bge.fake_autoneg=1 to /boot/loader.conf. May be > this will help. I did it, but sysctl doesn't show the value. w3-6# sysctl hw.bge sysctl: unknown oid 'hw.bge' This sysctl seems to be defined in if_bge.c though: static int bge_fake_autoneg = 0; TUNABLE_INT("hw.bge.fake_autoneg", &bge_fake_autoneg); /S -- Sławek Żak / UNIX Systems Administrator
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?787bbe1c0609210332p759e22dah8601313436754458>
