[PATCH] GRETH: remove TCP/UDP HW checksum generation
Daniel Hellstrom
daniel at gaisler.com
Mon Jun 2 16:02:02 UTC 2014
The GRETH doesn't support IP fragments.
---
c/src/libchip/network/greth.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/libchip/network/greth.c b/c/src/libchip/network/greth.c
index e957dc3..ccf2017 100644
--- a/c/src/libchip/network/greth.c
+++ b/c/src/libchip/network/greth.c
@@ -814,9 +814,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 */
--
1.7.0.4
More information about the devel
mailing list