Re: Check if interface supports Device Polling



On Wed, Oct 22, 2008 at 08:12:28AM -0700, Jeremy Chadwick wrote:
# ifconfig -v rl0 caps
Capabilities: 48

The above patch is completely unnecessary. The -m flag in ifconfig
will do what you want.

However, the existing ifconfig code does not print POLLING as a
capability, which is where the bug truly lies.

I'll provide a patch that extends the capability list properly, and will
allow you to determine a full capability list.

I'm both correct and incorrect.

Correct: ifconfig -m will show you want. No need for the patch.

Incorrect: I missed the "POLLING" part of #define IFCAPBITS in
ifconfig.c -- it is in fact listed there.

Maybe the polling bit is only made available if you've built a kernel
with "option DEVICE_POLLING"? For example, I can do "ifconfig em1
polling", which returns no error, but "ifconfig -m em1" does not show
POLLING. (My kernel does NOT have DEVICE_POLLING defined.)

In your above output, capabilities is 0x48, which means POLLING is
available, and VLAN_MTU is available. You did not provide us output of
"ifconfig -m rl0", but I'd be inclined to believe "POLLING" is shown
there... I hope. :-)

Also, it appears ifconfig does not print TOE4 or TOE6 capability bits;
that's probably a missing feature.

--
| 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 |

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Check if interface supports Device Polling
    ... The above patch is completely unnecessary. ... The -m flag in ifconfig ... the existing ifconfig code does not print POLLING as a ... I'll provide a patch that extends the capability list properly, ...
    (freebsd-stable)
  • Re: Check if interface supports Device Polling
    ... The above patch is completely unnecessary. ... The -m flag in ifconfig ... the existing ifconfig code does not print POLLING as a ... I'll provide a patch that extends the capability list properly, ...
    (freebsd-stable)
  • Re: [2.6 patch] remove securebits
    ... Attached is what I consider only an RFC patch. ... In the absence of filesystem capability support, ... int (int option, unsigned long arg2, ... int security_task_prctl(int option, unsigned long arg2, unsigned long arg3, ...
    (Linux-Kernel)
  • Re: [2.6 patch] remove securebits
    ... Attached is what I consider only an RFC patch. ... In the absence of filesystem capability support, ... -/* Transfer any capability in your permitted set to any pid, ... int (int option, unsigned long arg2, ...
    (Linux-Kernel)
  • Re: [PATCH] pciutils: Support for MSI-X capability
    ... > Matthew> for whether people like the direction I'm taking. ... > Sorry, I'm not subscribed to linux-pci, so I missed them. ... The second patch adds support for the Express capability. ...
    (Linux-Kernel)