Add reporting and toggling of TCP LRO (large receive offload) support to

ifconfig(8).
This commit is contained in:
Andre Oppermann 2007-06-11 20:15:20 +00:00
parent 5df29e0ce9
commit a6575bfc2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170578
2 changed files with 11 additions and 1 deletions

View File

@ -379,6 +379,14 @@ It will always disable TSO for
.Xr ip 4
and
.Xr ip6 4 .
.It Cm lro
If the driver supports
.Xr tcp 4
large receive offloading, enable LRO on the interface.
.It Fl lro
If the driver supports
.Xr tcp 4
large receive offloading, disable LRO on the interface.
.It Cm vlanmtu , vlanhwtag
If the driver offers user-configurable VLAN support, enable
reception of extended frames or tag processing in hardware,

View File

@ -748,7 +748,7 @@ setifname(const char *val, int dummy __unused, int s,
#define IFCAPBITS \
"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
"\10VLAN_HWCSUM\11TSO4\12TSO6"
"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO"
/*
* Print the status of the interface. If an address family was
@ -984,6 +984,8 @@ static struct cmd basic_cmds[] = {
DEF_CMD("-polling", -IFCAP_POLLING, setifcap),
DEF_CMD("tso", IFCAP_TSO, setifcap),
DEF_CMD("-tso", -IFCAP_TSO, setifcap),
DEF_CMD("lro", IFCAP_LRO, setifcap),
DEF_CMD("-lro", -IFCAP_LRO, setifcap),
DEF_CMD("normal", -IFF_LINK0, setifflags),
DEF_CMD("compress", IFF_LINK0, setifflags),
DEF_CMD("noicmp", IFF_LINK1, setifflags),