According to the design of checksum offloading framework,
if_hwassist should be in accord with the IFCAP_TXCSUM bit of if_capenable.
This commit is contained in:
parent
88b404a610
commit
a5820ecb77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129632
@ -2114,10 +2114,13 @@ nge_ioctl(ifp, command, data)
|
||||
* 8152 (TX FIFO size minus 64 minus 18), turn off
|
||||
* TX checksum offloading.
|
||||
*/
|
||||
if (ifr->ifr_mtu >= 8152)
|
||||
if (ifr->ifr_mtu >= 8152) {
|
||||
ifp->if_capenable &= ~IFCAP_TXCSUM;
|
||||
ifp->if_hwassist = 0;
|
||||
else
|
||||
} else {
|
||||
ifp->if_capenable |= IFCAP_TXCSUM;
|
||||
ifp->if_hwassist = NGE_CSUM_FEATURES;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SIOCSIFFLAGS:
|
||||
|
Loading…
Reference in New Issue
Block a user