diff options
author | andre <andre@FreeBSD.org> | 2006-09-06 22:07:14 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2006-09-06 22:07:14 +0000 |
commit | f88e673aad2d1d0b5d140bf94727f31efa4d919c (patch) | |
tree | d27b7763a9675c7df52d8d9c0eeb35306a487b58 /sbin/ifconfig/ifconfig.c | |
parent | 55dc203a73ebf4a1c91b30e5dc468700df02d68b (diff) | |
download | FreeBSD-src-f88e673aad2d1d0b5d140bf94727f31efa4d919c.zip FreeBSD-src-f88e673aad2d1d0b5d140bf94727f31efa4d919c.tar.gz |
Make TSO (TCP segmentation offload) capabilities visible and accessible with
'ifconfig em0 tso' and 'ifconfig em0 -tso'. TSO for IPv4 and IPv6 is always
enabled or disabled together. The driver may enable only one if it doesn't
support both.
Document 'tso' and '-tso' in the ifconfig(8) man pages.
Sponsored by: TCP/IP Optimization Fundraise 2005
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 3f0172f..0f3c184 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -805,7 +805,7 @@ rt_xaddrs(caddr_t cp, caddr_t cplim, struct rt_addrinfo *rtinfo) #define IFCAPBITS \ "\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \ -"\10VLAN_HWCSUM" +"\8TSO4\9TSO6\10VLAN_HWCSUM" /* * Print the status of the interface. If an address family was @@ -1035,6 +1035,8 @@ static struct cmd basic_cmds[] = { DEF_CMD("-netcons", -IFCAP_NETCONS, setifcap), DEF_CMD("polling", IFCAP_POLLING, setifcap), DEF_CMD("-polling", -IFCAP_POLLING, setifcap), + DEF_CMD("tso", IFCAP_TSO, setifcap), + DEF_CMD("-tso", -IFCAP_TSO, setifcap), DEF_CMD("normal", -IFF_LINK0, setifflags), DEF_CMD("compress", IFF_LINK0, setifflags), DEF_CMD("noicmp", IFF_LINK1, setifflags), |