diff options
author | wpaul <wpaul@FreeBSD.org> | 2001-06-06 19:16:02 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2001-06-06 19:16:02 +0000 |
commit | 1f5186746681c74bb2f31c351a5021fa21c40ad8 (patch) | |
tree | 994da23d8a0c951ccd510dd47c552a304ed78130 /sys/dev/lge | |
parent | 02da61175ced01c65e7df9cbe7d664574bb21003 (diff) | |
download | FreeBSD-src-1f5186746681c74bb2f31c351a5021fa21c40ad8.zip FreeBSD-src-1f5186746681c74bb2f31c351a5021fa21c40ad8.tar.gz |
Use LGE_INC() macro to increment tx producer index in lge_encap().
Disable the extra TCP/UCP checksum checking in lge_rxeof() since it
doesn't appear to actually work as advertised.
Diffstat (limited to 'sys/dev/lge')
-rw-r--r-- | sys/dev/lge/if_lge.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index ac8959f..35cdc4d 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -1023,6 +1023,7 @@ static void lge_rxeof(sc, cnt) m->m_pkthdr.csum_flags |= CSUM_IP_CHECKED; if (!(rxsts & LGE_RXSTS_IPCSUMERR)) m->m_pkthdr.csum_flags |= CSUM_IP_VALID; +#ifdef notyet if ((rxsts & LGE_RXSTS_ISTCP && !(rxsts & LGE_RXSTS_TCPCSUMERR)) || (rxsts & LGE_RXSTS_ISUDP && @@ -1031,7 +1032,7 @@ static void lge_rxeof(sc, cnt) CSUM_DATA_VALID|CSUM_PSEUDO_HDR; m->m_pkthdr.csum_data = 0; } - +#endif ether_input(ifp, eh, m); } @@ -1230,7 +1231,7 @@ static int lge_encap(sc, m_head, txidx) cur_tx->lge_mbuf = m_head; cur_tx->lge_ctl = LGE_TXCTL_WANTINTR|LGE_FRAGCNT(frag)|tot_len; - (*txidx)++; + LGE_INC((*txidx), LGE_TX_LIST_CNT); /* Queue for transmit */ CSR_WRITE_4(sc, LGE_TXDESC_ADDR_LO, vtophys(cur_tx)); |