svn commit: r231221 - stable/9/sbin/ifconfig

Bjoern A. Zeeb bz at FreeBSD.org
Wed Feb 8 18:51:11 UTC 2012


Author: bz
Date: Wed Feb  8 18:51:10 2012
New Revision: 231221
URL: http://svn.freebsd.org/changeset/base/231221

Log:
  MFC r228641:
  
   Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
   offloading on vlans and document the new option.

Modified:
  stable/9/sbin/ifconfig/ifconfig.8
  stable/9/sbin/ifconfig/ifvlan.c
Directory Properties:
  stable/9/sbin/ifconfig/   (props changed)

Modified: stable/9/sbin/ifconfig/ifconfig.8
==============================================================================
--- stable/9/sbin/ifconfig/ifconfig.8	Wed Feb  8 18:36:07 2012	(r231220)
+++ stable/9/sbin/ifconfig/ifconfig.8	Wed Feb  8 18:51:10 2012	(r231221)
@@ -28,7 +28,7 @@
 .\"     From: @(#)ifconfig.8	8.3 (Berkeley) 1/5/94
 .\" $FreeBSD$
 .\"
-.Dd September 13, 2011
+.Dd December 17, 2011
 .Dt IFCONFIG 8
 .Os
 .Sh NAME
@@ -423,10 +423,10 @@ they support in their capabilities.
 is a synonym for enabling all available WOL mechanisms.
 To disable WOL use
 .Fl wol .
-.It Cm vlanmtu , vlanhwtag, vlanhwfilter, vlanhwtso
+.It Cm vlanmtu , vlanhwtag, vlanhwfilter, vlanhwcsum, vlanhwtso
 If the driver offers user-configurable VLAN support, enable
 reception of extended frames, tag processing in hardware,
-frame filtering in hardware, or TSO on VLAN,
+frame filtering in hardware, checksum offloading, or TSO on VLAN,
 respectively.
 Note that this must be issued on a physical interface associated with
 .Xr vlan 4 ,

Modified: stable/9/sbin/ifconfig/ifvlan.c
==============================================================================
--- stable/9/sbin/ifconfig/ifvlan.c	Wed Feb  8 18:36:07 2012	(r231220)
+++ stable/9/sbin/ifconfig/ifvlan.c	Wed Feb  8 18:51:10 2012	(r231221)
@@ -183,6 +183,8 @@ static struct cmd vlan_cmds[] = {
 	DEF_CMD("-vlanhwfilter", -IFCAP_VLAN_HWFILTER,	setifcap),
 	DEF_CMD("-vlanhwtso",	-IFCAP_VLAN_HWTSO,	setifcap),
 	DEF_CMD("vlanhwtso",	IFCAP_VLAN_HWTSO,	setifcap),
+	DEF_CMD("vlanhwcsum",	IFCAP_VLAN_HWCSUM,	setifcap),
+	DEF_CMD("-vlanhwcsum",	-IFCAP_VLAN_HWCSUM,	setifcap),
 };
 static struct afswtch af_vlan = {
 	.af_name	= "af_vlan",


More information about the svn-src-stable-9 mailing list