MAC and PHY loopback tests entrypoint for NIC controller
bhutchings at solarflare.com
Wed Aug 17 16:25:48 UTC 2011
On Wed, 2011-08-17 at 17:42 +0200, Marius Strobl wrote:
> On Sat, 6 Aug 2011 23:39:38 +0530
> Naresh <gbal.naresh at 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.
> > 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.
What you're talking about is configuring loopback mode but leaving the
network stack connected. This can be useful for directed testing by
developers and QA, but it is not at all useful for an automated
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
More information about the freebsd-drivers