diff options
author | yar <yar@FreeBSD.org> | 2004-05-23 20:22:40 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-05-23 20:22:40 +0000 |
commit | 747b4b5ae0b8a831f8be8364825620f94dcb9ad1 (patch) | |
tree | c8d4e0332c087481488522882dd29ba8c31ca6e6 /sys/dev/nge | |
parent | e7b7db73cdcde5672ab1feb5c38dea7bbd29054b (diff) | |
download | FreeBSD-src-747b4b5ae0b8a831f8be8364825620f94dcb9ad1.zip FreeBSD-src-747b4b5ae0b8a831f8be8364825620f94dcb9ad1.tar.gz |
According to the design of checksum offloading framework,
if_hwassist should be in accord with the IFCAP_TXCSUM bit
of if_capenable.
Diffstat (limited to 'sys/dev/nge')
-rw-r--r-- | sys/dev/nge/if_nge.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index e8453b3..82b654d 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -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: |