Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 2010 14:23:04 -0700 (PDT)
From:      Sushanth Rai <sushanth_rai@yahoo.com>
To:        pyunyh@gmail.com
Cc:        freebsd-net@freebsd.org, Luiz Otavio O Souza <lists.br@gmail.com>
Subject:   Re: Changing link status in bge driver
Message-ID:  <603765.7505.qm@web180004.mail.gq1.yahoo.com>
In-Reply-To: <20100923182637.GB15014@michelle.cdnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Implementing IFM_NONE in brgphy_service() to power down PHY works like a ch=
arm !!=0A=0AMany thanks=0ASushanth=0A=0A--- On Thu, 9/23/10, Pyun YongHyeon=
 <pyunyh@gmail.com> wrote:=0A=0A> From: Pyun YongHyeon <pyunyh@gmail.com>=
=0A> Subject: Re: Changing link status in bge driver=0A> To: "Sushanth Rai"=
 <sushanth_rai@yahoo.com>=0A> Cc: "Luiz Otavio O Souza" <lists.br@gmail.com=
>, freebsd-net@freebsd.org=0A> Date: Thursday, September 23, 2010, 11:26 AM=
=0A> On Thu, Sep 23, 2010 at 11:05:08AM=0A> -0700, Sushanth Rai wrote:=0A> =
> "ifconfig bge1 media none" does change the PHY status=0A> temporarily. I =
see the following when I run this command:=0A> > =0A> > bge1:=0A> flags=3D8=
843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>=0A> metric 0 mtu 1500=0A> >=A0 =
=A0=0A> =A0=A0=A0options=3Dbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_M=
TU,VLAN_HWCSUM>=0A> >=A0 =A0 =A0 =A0=A0=A0ether=0A> 00:40:d0:b8:1e:0b=0A> >=
=A0 =A0 =A0 =A0=A0=A0media: Ethernet=0A> none=0A> >=A0 =A0 =A0 =A0=A0=A0sta=
tus: no=0A> carrier=0A> > =0A> > After a few seconds if I do "ifconfig bge1=
", it's=0A> automagically changed to:=0A> > =0A> > bge1:=0A> flags=3D8843<U=
P,BROADCAST,RUNNING,SIMPLEX,MULTICAST>=0A> metric 0 mtu 1500=0A> >=A0 =A0=
=0A> =A0=A0=A0options=3Dbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,=
VLAN_HWCSUM>=0A> >=A0 =A0 =A0 =A0=A0=A0ether=0A> 00:40:d0:b8:1e:0b=0A> >=A0=
 =A0 =A0 =A0=A0=A0media: Ethernet=0A> none (1000baseTX <full-duplex>)=0A> >=
=A0 =A0 =A0 =A0=A0=A0status: active=0A> > =0A> > =0A> > I tried playing aro=
und with mediaopt, but PHY status=0A> doesn't seem to change permanently. =
=0A> > =0A> =0A> brgphy(4) does not correctly handle IFM_NONE at this=0A> m=
oment. In=0A> fact, brgphy(4)'s manual media configuration does not seem=0A=
> to work=0A> well. See MII_MEDIACHG handler of brgphy_physervice and=0A> i=
mplement=0A> IFM_NONE media type to power down or isolate the PHY.=0A> =0A>=
 > =0A> > --- On Thu, 9/23/10, Luiz Otavio O Souza <lists.br@gmail.com>=0A>=
 wrote:=0A> > =0A> > > From: Luiz Otavio O Souza <lists.br@gmail.com>=0A> >=
 > Subject: Re: Changing link status in bge driver=0A> > > To: "Sushanth Ra=
i" <sushanth_rai@yahoo.com>=0A> > > Date: Thursday, September 23, 2010, 2:3=
1 AM=0A> > > On Sep 23, 2010, at 4:11 AM, Sushanth=0A> > > Rai wrote:=0A> >=
 > =0A> > > > Hello,=0A> > > > =0A> > > > I'm using BCM5715C based NIC card=
 on a=0A> FreeBSD 7.2=0A> > > system. I would like to simulate condition wh=
ere=0A> the PHY=0A> > > layer is powered-off i.e, the link status should=0A=
> show as "no=0A> > > carrier". When I do "ifconfig down", it just=0A> turn=
s-off the=0A> > > driver and the link status is still active. Is=0A> there =
is=0A> > > anything I can do in the bge driver or anywhere=0A> else in the=
=0A> > > software stack to simulate this condition without=0A> physically=
=0A> > > disconnecting the cable ?=0A> > > > =0A> > > > Thanks,=0A> > > > S=
ushanth=0A> > > =0A> > > Hi,=0A> > > =0A> > > ifconfig bgeX media none shou=
ld do what you=0A> need.=0A> > > =0A> > > Luiz=0A> > ______________________=
_________________________=0A> > freebsd-net@freebsd.org=0A> mailing list=0A=
> > http://lists.freebsd.org/mailman/listinfo/freebsd-net=0A>; > To unsubscr=
ibe, send any mail to "freebsd-net-unsubscribe@freebsd.org"=0A> 



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