summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2007-06-11 20:15:20 +0000
committerandre <andre@FreeBSD.org>2007-06-11 20:15:20 +0000
commit6955439784cadeca74b3a9edeea2729fe14c7ae9 (patch)
tree2cef77e196591ecce55887f63c8f814b0b207528 /sbin/ifconfig/ifconfig.c
parent5983912c3d4a6d4930df2b9c1d6a416afa44ffc2 (diff)
downloadFreeBSD-src-6955439784cadeca74b3a9edeea2729fe14c7ae9.zip
FreeBSD-src-6955439784cadeca74b3a9edeea2729fe14c7ae9.tar.gz
Add reporting and toggling of TCP LRO (large receive offload) support to
ifconfig(8).
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r--sbin/ifconfig/ifconfig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 2f502b5..f072ea8 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -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),
OpenPOWER on IntegriCloud