From owner-freebsd-stable@FreeBSD.ORG Tue Oct 21 21:41:51 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 898B9106567A for ; Tue, 21 Oct 2008 21:41:51 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 6F6E68FC1C for ; Tue, 21 Oct 2008 21:41:50 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id VMvu1a00216AWCUA2ZhqZm; Tue, 21 Oct 2008 21:41:50 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA06.emeryville.ca.mail.comcast.net with comcast id VZhp1a00B2P6wsM8SZhpoA; Tue, 21 Oct 2008 21:41:50 +0000 X-Authority-Analysis: v=1.0 c=1 a=BYaJvuN2rVMA:10 a=Ddka7i0Yzg4A:10 a=QycZ5dHgAAAA:8 a=gDqULVzDR6IhONfhQIEA:9 a=DGYEDoyyB3tXqDepTNVehgiC48MA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 21AEFC9432; Tue, 21 Oct 2008 14:41:49 -0700 (PDT) Date: Tue, 21 Oct 2008 14:41:49 -0700 From: Jeremy Chadwick To: Eduardo Meyer Message-ID: <20081021214149.GA41099@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: stable@freebsd.org Subject: Re: Check if interface supports Device Polling X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 21:41:51 -0000 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 > > 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 |