Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 18:51:25 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r231223 - stable/7/sbin/ifconfig
Message-ID:  <201202081851.q18IpPjP056270@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Feb  8 18:51:25 2012
New Revision: 231223
URL: http://svn.freebsd.org/changeset/base/231223

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

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

Modified: stable/7/sbin/ifconfig/ifconfig.8
==============================================================================
--- stable/7/sbin/ifconfig/ifconfig.8	Wed Feb  8 18:51:20 2012	(r231222)
+++ stable/7/sbin/ifconfig/ifconfig.8	Wed Feb  8 18:51:25 2012	(r231223)
@@ -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
@@ -402,10 +402,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/7/sbin/ifconfig/ifvlan.c
==============================================================================
--- stable/7/sbin/ifconfig/ifvlan.c	Wed Feb  8 18:51:20 2012	(r231222)
+++ stable/7/sbin/ifconfig/ifvlan.c	Wed Feb  8 18:51:25 2012	(r231223)
@@ -184,6 +184,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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202081851.q18IpPjP056270>