summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-06-23 20:54:16 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-06-23 20:54:16 +0000
commitafd77e67750a0c775c9a5d46bfb59909401b18b8 (patch)
tree2594736357991d95b7b66c192d1552e3f20e8f42
parentf14ed829ac9e9f653c486570f9d06bed9ebdae23 (diff)
Go ahead and add the output checksum handling for tcp/udp (commented out)
-rw-r--r--sys/dev/pci/if_txp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c
index b714453db37..5d89f092442 100644
--- a/sys/dev/pci/if_txp.c
+++ b/sys/dev/pci/if_txp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txp.c,v 1.44 2001/06/23 04:44:25 jason Exp $ */
+/* $OpenBSD: if_txp.c,v 1.45 2001/06/23 20:54:15 jason Exp $ */
/*
* Copyright (c) 2001
@@ -1350,6 +1350,12 @@ txp_start(ifp)
if (m->m_pkthdr.csum & M_IPV4_CSUM_OUT)
txd->tx_pflags |= TX_PFLAGS_IPCKSUM;
+#if 0
+ if (m->m_pkthdr.csum & M_TCPV4_CSUM_OUT)
+ txd->tx_pflags |= TX_PFLAGS_TCPCKSUM;
+ if (m->m_pkthdr.csum & M_UDPV4_CSUM_OUT)
+ txd->tx_pflags |= TX_PFLAGS_UDPCKSUM;
+#endif
fxd = (struct txp_frag_desc *)(r->r_desc + prod);
for (i = 0; i < sd->sd_map->dm_nsegs; i++) {