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,11 +2114,14 @@ 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:
|
||||
if (ifp->if_flags & IFF_UP) {
|
||||
|
Loading…
Reference in New Issue
Block a user