Date: Thu, 18 Aug 2011 19:51:37 +0530 From: Naresh <gbal.naresh@gmail.com> To: Marius Strobl <marius@alchemy.franken.de> Cc: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>, "yongari@freebsd.org" <yongari@freebsd.org> Subject: Re: MAC and PHY loopback tests entrypoint for NIC controller Message-ID: <EFCA23F3-34B0-4514-8DB2-F4BE05D47858@gmail.com> In-Reply-To: <20110817164947.GO48988@alchemy.franken.de> References: <1A69CCCE-AF58-465E-87F5-BE3AF0BBAB19@gmail.com> <20110817174229.34215905@rfhrz076.fh-regensburg.de> <1313597619.2776.20.camel@bwh-desktop> <20110817164947.GO48988@alchemy.franken.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks a lot Marius and Ben. Sent from my iPhone On 17-Aug-2011, at 10:19 PM, Marius Strobl <marius@alchemy.franken.de> wrote: > On Wed, Aug 17, 2011 at 05:13:39PM +0100, Ben Hutchings wrote: >> On Wed, 2011-08-17 at 17:42 +0200, Marius Strobl wrote: >>> On Sat, 6 Aug 2011 23:39:38 +0530 >>> Naresh <gbal.naresh@gmail.com> wrote: >>> >>>> >>>> Hi All, >>>> >>>> I am writing a 10Gb Ethernet driver. We have a requirement to support >>>> Mac and PHY loopback test for the network controller. In Linux there >>>> is a ethtool entrypoint which calls this feature. >> >> Me too! >> >>>> I wondering what will be the equivalent entry point in FreeBSD. I >>>> tried looking in to other drivers, but not lucky enough to find one. >>>> >>>> It is much appreciated if some one could point me to MAC and PHY >>>> loopback test entry point in FreeBSD. >>>> >>> >>> I don't know what API Linux provides but I think the question is how to >>> activate loopback mode from userland. >> [...] >> >> This is a very different thing. >> >> On Linux, ethtool invokes a driver function that runs a set of driver- >> specific self-tests (synchronously). There is a flag for whether the >> driver should run offline tests, in which case it will temporarily >> disconnect from the network stack and then (normally) select loopback >> mode, generate and validate packets. >> > > Ah, okay, unfortunately FreeBSD provides no standard interface for that. > > Marius >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EFCA23F3-34B0-4514-8DB2-F4BE05D47858>