From owner-freebsd-net@FreeBSD.ORG Thu Sep 23 21:23:05 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 919051065670 for ; Thu, 23 Sep 2010 21:23:05 +0000 (UTC) (envelope-from sushanth_rai@yahoo.com) Received: from web180004.mail.gq1.yahoo.com (web180004.mail.gq1.yahoo.com [67.195.8.68]) by mx1.freebsd.org (Postfix) with SMTP id 347938FC0C for ; Thu, 23 Sep 2010 21:23:04 +0000 (UTC) Received: (qmail 8733 invoked by uid 60001); 23 Sep 2010 21:23:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1285276984; bh=OKOixxp5b4klsYmbs0oXoSyWj6CcMRG3xrHL8A9YPTo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=V6Cd04KElBWPOjeIe3i4zFUT1OwFN6r2H65y1Ydo1g5FfXugaILZFt1FLOqD6MBrm0oivNjnIMc/QSbwXpg+FnXTW2Oo1FfIhbFSDUsqOcBKRqTtUvMzXDBcoseCRB8TBYuFmblnE6meBTFBpVi/qjyf5SKr6Ghp0iTlBGPfJVQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gx3YpJYZqt9XfR5UQ0U+6eqRa4cUhx5ySbER3/tnBCEQT/GOBRj/3K5Ipu6TjJg+W9Ola5VlzjeQKucWapdfujdZC2aog/HRrIXvG/JRQJ34goOK5MUnO9K8Nb39Q+kwGjEke2cucOC0DH4nyduuqb9hTdgJu53I+1bBtI76leQ=; Message-ID: <603765.7505.qm@web180004.mail.gq1.yahoo.com> X-YMail-OSG: jOKLClEVM1m4eF8.VZfF_AVk822SnL4O.wQed3zl9Xjd8cZ U.mnAx2VDiKocmJ0vTvpNzxtE9Pv7J0OpFct2d7m9cSG89TStxToE.kEZMB9 TR4xYZdnnwkji.Plq6xlh6PrUX0ciVxrrQOWL1TGwlSesIhxqa9849FNGiTL 438oUirbDsQAlhh8l7MPI8jOmELcEiXHlpqshXNu.wJf5Lwv8Kf5cKulQs1P hcrcp4gRDCOYFhqseOkwHYoN9nvBwUsckV5GrxNk5aUMem9h4kKPJ5x8TNf4 QdlCUWYMOEpKF3KsHVNzu8c8M6UQS2o6A6OLJjXKK6LoH7VBPScGYDVTwDvc xbDXvwtHxzvKAt7VPtA3E_UqgmRQQ Received: from [209.116.51.67] by web180004.mail.gq1.yahoo.com via HTTP; Thu, 23 Sep 2010 14:23:04 PDT X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.105.279950 Date: Thu, 23 Sep 2010 14:23:04 -0700 (PDT) From: Sushanth Rai To: pyunyh@gmail.com In-Reply-To: <20100923182637.GB15014@michelle.cdnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Luiz Otavio O Souza Subject: Re: Changing link status in bge driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2010 21:23:05 -0000 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= wrote:=0A=0A> From: Pyun YongHyeon = =0A> Subject: Re: Changing link status in bge driver=0A> To: "Sushanth Rai"= =0A> Cc: "Luiz Otavio O Souza" , 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=0A> metric 0 mtu 1500=0A> >=A0 = =A0=0A> =A0=A0=A0options=3Dbb=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=0A> metric 0 mtu 1500=0A> >=A0 =A0= =0A> =A0=A0=A0options=3Dbb=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 )=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 =0A>= wrote:=0A> > =0A> > > From: Luiz Otavio O Souza =0A> >= > Subject: Re: Changing link status in bge driver=0A> > > To: "Sushanth Ra= i" =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>