diff options
author | bz <bz@FreeBSD.org> | 2012-04-24 08:30:55 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2012-04-24 08:30:55 +0000 |
commit | e367816dd29fdf52da1e1b4986aa7d8c7882b600 (patch) | |
tree | 7c951c21b19855c3b0ec003511eadb9013eefaba /sys/dev/re | |
parent | e0380acdc0579432c3510160f574b350556f06c2 (diff) | |
download | FreeBSD-src-e367816dd29fdf52da1e1b4986aa7d8c7882b600.zip FreeBSD-src-e367816dd29fdf52da1e1b4986aa7d8c7882b600.tar.gz |
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
Diffstat (limited to 'sys/dev/re')
-rw-r--r-- | sys/dev/re/if_re.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 672fced..995fa53 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -3432,7 +3432,7 @@ re_ioctl(struct ifnet *ifp, u_long command, caddr_t data) 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; |