diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-08 01:49:52 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-08 01:49:52 +0000 |
commit | 8d669a211845b45901120ff2440c205b7f2adf5d (patch) | |
tree | dceda42d963f058780391688da5ecd302948d0a1 | |
parent | acb54fc63ddb2d8701b0a07b71deb413f95eb2f2 (diff) |
- use ETHER_MAX_LEN_JUMBO in one more spot
- don't bother setting bad checksum flag, fallback on software
-rw-r--r-- | sys/dev/pci/if_ti.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index fd39a0ebdac..260057462f7 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ti.c,v 1.66 2005/07/08 01:09:14 brad Exp $ */ +/* $OpenBSD: if_ti.c,v 1.67 2005/07/08 01:49:51 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1056,7 +1056,7 @@ int ti_init_tx_ring(sc) SLIST_INIT(&sc->ti_tx_map_listhead); for (i = 0; i < TI_TX_RING_CNT; i++) { if (bus_dmamap_create(sc->sc_dmatag, ETHER_MAX_LEN_JUMBO, - TI_NTXSEG, MCLBYTES, 0, BUS_DMA_NOWAIT, &dmamap)) + TI_NTXSEG, ETHER_MAX_LEN_JUMBO, 0, BUS_DMA_NOWAIT, &dmamap)) return(ENOBUFS); entry = malloc(sizeof(*entry), M_DEVBUF, M_NOWAIT); @@ -1893,8 +1893,6 @@ void ti_rxeof(sc) if ((cur_rx->ti_ip_cksum ^ 0xffff) == 0) sumflags |= M_IPV4_CSUM_IN_OK; - else - sumflags |= M_IPV4_CSUM_IN_BAD; m->m_pkthdr.csum_flags = sumflags; sumflags = 0; |