diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-06-23 04:44:26 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-06-23 04:44:26 +0000 |
commit | abdc05c1628df7ad5f17e160e50cc51f0ee67a3c (patch) | |
tree | 27e0b518d7a8c866fa2a8bf35c13b2fe605678a7 /sys | |
parent | 4d7a0cc8bba858000b82660ea9747ccc9332b510 (diff) |
IPv4 transmit checksum offload handling
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_txp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c index 19456fed9d0..b714453db37 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.43 2001/06/23 04:20:42 jason Exp $ */ +/* $OpenBSD: if_txp.c,v 1.44 2001/06/23 04:44:25 jason Exp $ */ /* * Copyright (c) 2001 @@ -1348,6 +1348,9 @@ txp_start(ifp) } #endif + if (m->m_pkthdr.csum & M_IPV4_CSUM_OUT) + txd->tx_pflags |= TX_PFLAGS_IPCKSUM; + fxd = (struct txp_frag_desc *)(r->r_desc + prod); for (i = 0; i < sd->sd_map->dm_nsegs; i++) { if (++cnt >= (TX_ENTRIES - 4)) @@ -1872,6 +1875,7 @@ txp_capabilities(sc) #endif #if 0 + /* not ready yet */ if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_IPSEC) { sc->sc_tx_capability |= OFFLOAD_IPSEC; sc->sc_rx_capability |= OFFLOAD_IPSEC; @@ -1880,13 +1884,9 @@ txp_capabilities(sc) #endif if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_IPCKSUM) { -#if 0 sc->sc_tx_capability |= OFFLOAD_IPCKSUM; -#endif sc->sc_rx_capability |= OFFLOAD_IPCKSUM; -#if 0 ifp->if_capabilities |= IFCAP_CSUM_IPv4; -#endif } if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_TCPCKSUM) { |