svn commit: r234643 - head/sys/dev/re
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Apr 24 08:30:56 UTC 2012
Author: bz
Date: Tue Apr 24 08:30:55 2012
New Revision: 234643
URL: http://svn.freebsd.org/changeset/base/234643
Log:
Do not toggle IFCAP_TSO4 if we would also do TSO6. Given the driver does
not currently announce/support TSO6 that cannot happen. Clean it up anyway
for consistency.
Reviewed by: yongari
MFC after: 1 week
Modified:
head/sys/dev/re/if_re.c
Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c Tue Apr 24 08:30:36 2012 (r234642)
+++ head/sys/dev/re/if_re.c Tue Apr 24 08:30:55 2012 (r234643)
@@ -3432,7 +3432,7 @@ re_ioctl(struct ifnet *ifp, u_long comma
reinit = 1;
}
if ((mask & IFCAP_TSO4) != 0 &&
- (ifp->if_capabilities & IFCAP_TSO) != 0) {
+ (ifp->if_capabilities & IFCAP_TSO4) != 0) {
ifp->if_capenable ^= IFCAP_TSO4;
if ((IFCAP_TSO4 & ifp->if_capenable) != 0)
ifp->if_hwassist |= CSUM_TSO;
More information about the svn-src-all
mailing list