Date: Wed, 22 Jul 2015 13:11:14 -0600 From: Alan Somers <asomers@freebsd.org> To: Eric Joyner <ricera10@gmail.com> Cc: FreeBSD Net <freebsd-net@freebsd.org>, Navdeep Parhar <np@freebsd.org>, "Alexander V. Chernikov" <melifaro@freebsd.org> Subject: Re: Displaying the supported module types of a network adapter Message-ID: <CAOtMX2hxBT6yLFPTDGFve40=FWvCvYr1Yk1Q_60wT2h86giSCQ@mail.gmail.com> In-Reply-To: <CA%2Bb0zg-3Hyf8VQmgPefyTkjVwQS8kR8jBy5etsXmdwb_WBdQiw@mail.gmail.com> References: <CAOtMX2jpsLwaCpX7eO4fixmyWCSSOfVXEki6GiJ%2ByhrvrNOJDg@mail.gmail.com> <CA%2Bb0zg-3Hyf8VQmgPefyTkjVwQS8kR8jBy5etsXmdwb_WBdQiw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
It sounds like at least two drivers have the ability, and at least three people have the interest. I'll put this on my list. I'm not sure if I'll get to work on it soon, though. -Alan On Fri, Jul 17, 2015 at 9:40 AM, Eric Joyner <ricera10@gmail.com> wrote: > ixl(4) will list all of the supported module types for the device if you use > ifconfig -m, but I know that isn't the intended purpose of the -m flag. I > wouldn't mind moving all of that to another function whose purpose is to > just list all supported module types. > > - Eric > > On Wed, Jul 15, 2015 at 3:26 PM Alan Somers <asomers@freebsd.org> wrote: >> >> SIOCGIFMEDIA will return the list of supported media types and the >> current media type of a network interface. But for NICs with >> pluggable modules (SFP+, QSFP, etc), it would also be useful to know >> the allowed module type. I can't find any way to determine that using >> the standard tools. cxgbe(4) is aware of the module type allowed by >> the card, but doesn't expose that information to userspace. I can add >> a simple sysctl to do so, but it would be better to add a standard >> ioctl that can be used by all network drivers. >> >> Besides cxgbe(4), can any other network drivers support this? If so, >> would anybody else be interested? If so, should I add it to the >> "ifconfig -v" output? >> >> -Alan >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2hxBT6yLFPTDGFve40=FWvCvYr1Yk1Q_60wT2h86giSCQ>