svn commit: r207638 - head/sys/dev/msk
Pyun YongHyeon
yongari at FreeBSD.org
Tue May 4 22:24:20 UTC 2010
Author: yongari
Date: Tue May 4 22:24:19 2010
New Revision: 207638
URL: http://svn.freebsd.org/changeset/base/207638
Log:
When VLAN hardware tagging is disabled, make sure to disable VLAN
checksum offloading as well as TSO over VLAN.
Reported by: jhb
Modified:
head/sys/dev/msk/if_msk.c
Modified: head/sys/dev/msk/if_msk.c
==============================================================================
--- head/sys/dev/msk/if_msk.c Tue May 4 22:22:31 2010 (r207637)
+++ head/sys/dev/msk/if_msk.c Tue May 4 22:24:19 2010 (r207638)
@@ -1101,7 +1101,8 @@ msk_ioctl(struct ifnet *ifp, u_long comm
(IFCAP_VLAN_HWTAGGING & ifp->if_capabilities) != 0) {
ifp->if_capenable ^= IFCAP_VLAN_HWTAGGING;
if ((IFCAP_VLAN_HWTAGGING & ifp->if_capenable) == 0)
- ifp->if_capenable &= ~IFCAP_VLAN_HWTSO;
+ ifp->if_capenable &=
+ ~(IFCAP_VLAN_HWTSO | IFCAP_VLAN_HWCSUM);
msk_setvlan(sc_if, ifp);
}
if (ifp->if_mtu > ETHERMTU &&
More information about the svn-src-head
mailing list