Date: Tue, 21 Oct 2008 14:41:49 -0700 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Eduardo Meyer <dudu.meyer@gmail.com> Cc: stable@freebsd.org Subject: Re: Check if interface supports Device Polling Message-ID: <20081021214149.GA41099@icarus.home.lan> In-Reply-To: <d3ea75b30810211154kae89e00j57798a34bda78299@mail.gmail.com> References: <d3ea75b30810211154kae89e00j57798a34bda78299@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 21, 2008 at 04:54:14PM -0200, Eduardo Meyer wrote: > Is there another way to check if a certain interface supports polling, > other than reading polling(4)? I would like to have a script to check > it, issuing something like > > ifconfig -v -m <nic> > > How can I list all NIC capabilities? Would polling be listed if the > driver supports? I don't know if a way to do this on a running system, but a (likely horrible) way to pre-compile a list of drivers that support polling: grep -r 'DEVICE_POLLING$' /usr/src/sys/dev | uniq This won't give you results that you can automatically shove into a script and have it magically work, but it will give you a general idea. pluknet's idea to show the iface/driver capability bits is a good one. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081021214149.GA41099>