svn commit: r231222 - stable/8/sbin/ifconfig

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


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

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

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

Modified: stable/8/sbin/ifconfig/ifconfig.8
==============================================================================
--- stable/8/sbin/ifconfig/ifconfig.8	Wed Feb  8 18:51:10 2012	(r231221)
+++ stable/8/sbin/ifconfig/ifconfig.8	Wed Feb  8 18:51:20 2012	(r231222)
@@ -28,7 +28,7 @@
 .\"     From: @(#)ifconfig.8	8.3 (Berkeley) 1/5/94
 .\" $FreeBSD$
 .\"
-.Dd March 20, 2011
+.Dd December 17, 2011
 .Dt IFCONFIG 8
 .Os
 .Sh NAME
@@ -408,10 +408,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/8/sbin/ifconfig/ifvlan.c
==============================================================================
--- stable/8/sbin/ifconfig/ifvlan.c	Wed Feb  8 18:51:10 2012	(r231221)
+++ stable/8/sbin/ifconfig/ifvlan.c	Wed Feb  8 18:51:20 2012	(r231222)
@@ -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 mailing list