diff options
author | ru <ru@FreeBSD.org> | 2004-04-11 13:36:52 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-04-11 13:36:52 +0000 |
commit | dd9ed984465845ba1807ad894b5cf81130230e40 (patch) | |
tree | eb90827d051db0f6371dd1c8ac8eb80327a9d9cb /sbin | |
parent | 7ddbd99725ac33c28e22b6ca7838e1f78371be63 (diff) | |
download | FreeBSD-src-dd9ed984465845ba1807ad894b5cf81130230e40.zip FreeBSD-src-dd9ed984465845ba1807ad894b5cf81130230e40.tar.gz |
Added the new interface capability option for drivers that implement
user-configurable polling(4) support. Make ifconfig(8) aware of it.
Suggested by: luigi
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifconfig.8 | 10 | ||||
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index d3c0031..2f47884 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -28,7 +28,7 @@ .\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94 .\" $FreeBSD$ .\" -.Dd March 30, 2004 +.Dd April 11, 2004 .Dt IFCONFIG 8 .Os .Sh NAME @@ -332,6 +332,14 @@ support, the exact level of offloading varies between drivers. If the driver supports user-configurable checksum offloading, disable receive (or transmit) checksum offloading on the interface. These settings may not always be independent of each other. +.It Cm polling +If the driver has user-configurable +.Xr polling 4 +support, select the polling mode on the interface. +.It Fl polling +If the driver has user-configurable +.Xr polling 4 +support, select the interrupt mode on the interface. .It Cm tunnel Ar src_addr dest_addr (IP tunnel devices only.) Configure the physical source and destination address for IP tunnel diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 35c0597..07722fe 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -283,6 +283,8 @@ struct cmd { { "-txcsum", -IFCAP_TXCSUM, setifcap }, { "netcons", IFCAP_NETCONS, setifcap }, { "-netcons", -IFCAP_NETCONS, setifcap }, + { "polling", IFCAP_POLLING, setifcap }, + { "-polling", -IFCAP_POLLING, setifcap }, { "normal", -IFF_LINK0, setifflags }, { "compress", IFF_LINK0, setifflags }, { "noicmp", IFF_LINK1, setifflags }, @@ -1074,7 +1076,7 @@ setifname(const char *val, int dummy __unused, int s, "\20MULTICAST\21POLLING\23MONITOR\24STATICARP" #define IFCAPBITS \ -"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU" +"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" /* * Print the status of the interface. If an address family was |