diff options
author | wpaul <wpaul@FreeBSD.org> | 2001-06-15 19:02:55 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2001-06-15 19:02:55 +0000 |
commit | 89fb81a8c41236577dfc1355f0da5d1cf670b37a (patch) | |
tree | b522531997682fddced9c87e9afa42ae067f7220 /sys/dev/nge | |
parent | d524f968646bb58b7756f0a1338163c8cf27a1dc (diff) | |
download | FreeBSD-src-89fb81a8c41236577dfc1355f0da5d1cf670b37a.zip FreeBSD-src-89fb81a8c41236577dfc1355f0da5d1cf670b37a.tar.gz |
Turn TCP and UDP hardware RX checksumming back on. jlemon pointed out where
I'd gone wrong before: we have to set csum_data to 0xffff, not 0.
Diffstat (limited to 'sys/dev/nge')
-rw-r--r-- | sys/dev/nge/if_nge.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index 7b5baa6..ff1b53d 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -1293,16 +1293,14 @@ static void nge_rxeof(sc) m->m_pkthdr.csum_flags |= CSUM_IP_CHECKED; if (!(extsts & NGE_RXEXTSTS_IPCSUMERR)) m->m_pkthdr.csum_flags |= CSUM_IP_VALID; -#ifdef notdef if ((extsts & NGE_RXEXTSTS_TCPPKT && !(extsts & NGE_RXEXTSTS_TCPCSUMERR)) || (extsts & NGE_RXEXTSTS_UDPPKT && !(extsts & NGE_RXEXTSTS_UDPCSUMERR))) { m->m_pkthdr.csum_flags |= CSUM_DATA_VALID|CSUM_PSEUDO_HDR; - m->m_pkthdr.csum_data = 0; + m->m_pkthdr.csum_data = 0xffff; } -#endif } #if NVLAN > 0 |