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
This commit is contained in:
Bjoern A. Zeeb 2012-04-24 08:30:55 +00:00
parent fa00154522
commit fca1e0abf3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234643

View File

@ -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;