From fca1e0abf349c8b5e00ab983826fb89f4401d1bc Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Tue, 24 Apr 2012 08:30:55 +0000 Subject: [PATCH] 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 --- sys/dev/re/if_re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 672fced2edc..995fa530205 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;