Added the new interface capability option for drivers that implement
user-configurable polling(4) support. Make ifconfig(8) aware of it. Suggested by: luigi
This commit is contained in:
parent
7ddbd99725
commit
dd9ed98446
@ -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
|
||||
|
@ -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
|
||||
|
@ -169,6 +169,7 @@ struct if_data {
|
||||
#define IFCAP_VLAN_MTU 0x0008 /* VLAN-compatible MTU */
|
||||
#define IFCAP_VLAN_HWTAGGING 0x0010 /* hardware VLAN tag support */
|
||||
#define IFCAP_JUMBO_MTU 0x0020 /* 9000 byte MTU supported */
|
||||
#define IFCAP_POLLING 0x0040 /* driver supports polling */
|
||||
|
||||
#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user