GRETH: avoid hw generated UDP/TCP cksum generation

Hardware generated checksum UDP packets does not work for
IP fragmented UDP packets. It seems as if the BSD stack never
signals to the GRETH driver to generate or not to generate
TCP/UDP checksum for different cases. The GRETH driver never
tells the BSD stack about it capabilities either so there is
no point generating the cksums in HW when its done in SW any
way.

This patch disables hardware generated UDP and TCP checksums.
This commit is contained in:
Daniel Hellstrom
2015-04-17 01:10:20 +02:00
parent 80b9c8accd
commit 9b8e04e21d
+2 -2
View File
@@ -920,9 +920,9 @@ sendpacket_gbit (struct ifnet *ifp, struct mbuf *m)
/* Wrap around? */
if (dp->tx_ptr < dp->txbufs-1) {
ctrl = GRETH_TXD_ENABLE | GRETH_TXD_CS;
ctrl = GRETH_TXD_ENABLE;
}else{
ctrl = GRETH_TXD_ENABLE | GRETH_TXD_CS | GRETH_TXD_WRAP;
ctrl = GRETH_TXD_ENABLE | GRETH_TXD_WRAP;
}
/* Enable Descriptor */