svn commit: r234398 - user/np/toe_iwarp/sbin/ifconfig

Navdeep Parhar np at FreeBSD.org
Tue Apr 17 20:47:11 UTC 2012


Author: np
Date: Tue Apr 17 20:47:11 2012
New Revision: 234398
URL: http://svn.freebsd.org/changeset/base/234398

Log:
  Allow ifconfig to display, set, and clear IFCAP_TOE.

Modified:
  user/np/toe_iwarp/sbin/ifconfig/ifconfig.c

Modified: user/np/toe_iwarp/sbin/ifconfig/ifconfig.c
==============================================================================
--- user/np/toe_iwarp/sbin/ifconfig/ifconfig.c	Tue Apr 17 20:43:46 2012	(r234397)
+++ user/np/toe_iwarp/sbin/ifconfig/ifconfig.c	Tue Apr 17 20:47:11 2012	(r234398)
@@ -916,7 +916,7 @@ unsetifdescr(const char *val, int value,
 #define	IFCAPBITS \
 "\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
 "\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
-"\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP"
+"\17TOE4\20TOE6\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP\26VLAN_TOE"
 
 /*
  * Print the status of the interface.  If an address family was
@@ -1203,6 +1203,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("toe",		IFCAP_TOE,	setifcap),
+	DEF_CMD("-toe",		-IFCAP_TOE,	setifcap),
 	DEF_CMD("lro",		IFCAP_LRO,	setifcap),
 	DEF_CMD("-lro",		-IFCAP_LRO,	setifcap),
 	DEF_CMD("wol",		IFCAP_WOL,	setifcap),


More information about the svn-src-user mailing list