diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-09 23:18:54 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-09 23:18:54 +0000 |
commit | a4f67b495a2b3e0d4f67e606aba79463dfe997e3 (patch) | |
tree | ce448b93c348a9f7e276c8056a153a5fc053e355 /sys/dev | |
parent | a3e24ae25c49bd2c55b3271114cc95c11eee1146 (diff) |
remove code for TX checksum
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_nge.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index b2873075f81..d978213dab9 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.40 2005/07/09 22:26:14 brad Exp $ */ +/* $OpenBSD: if_nge.c,v 1.41 2005/07/09 23:18:53 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -1634,22 +1634,7 @@ nge_encap(sc, m_head, txidx) if (m != NULL) return(ENOBUFS); - /* - * Card handles checksumming on a packet by packet - * basis. - */ sc->nge_ldata->nge_tx_list[*txidx].nge_extsts = 0; - if (m_head->m_pkthdr.csum_flags) { - if (m_head->m_pkthdr.csum_flags & M_IPV4_CSUM_OUT) - sc->nge_ldata->nge_tx_list[*txidx].nge_extsts |= - NGE_TXEXTSTS_IPCSUM; - if (m_head->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT) - sc->nge_ldata->nge_tx_list[*txidx].nge_extsts |= - NGE_TXEXTSTS_TCPCSUM; - if (m_head->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT) - sc->nge_ldata->nge_tx_list[*txidx].nge_extsts |= - NGE_TXEXTSTS_UDPCSUM; - } #if NVLAN > 0 if (ifv != NULL) { |