diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2004-12-08 07:04:13 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2004-12-08 07:04:13 +0000 |
commit | 879f347a1e8237b4089a4b593f7207b47e29d542 (patch) | |
tree | 115f6cd5ab2e33467723c42698b933f15c7ebe40 /sys/dev/pci | |
parent | db0ae491d539e3ca683dc81ee095e48c9e3cd0a4 (diff) |
use ETHER_MAX_LEN
ok brad@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_ti.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index c3ba3275af1..24cffee0735 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.57 2004/11/22 04:14:17 deraadt Exp $ */ +/* $OpenBSD: if_ti.c,v 1.58 2004/12/08 07:04:12 jsg Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1519,7 +1519,7 @@ int ti_gibinit(sc) TI_RING_DMASYNC(sc, ti_info, BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); /* Set up tuneables */ - if (ifp->if_mtu > (ETHERMTU + ETHER_HDR_LEN + ETHER_CRC_LEN)) + if (ifp->if_mtu > ETHER_MAX_LEN) CSR_WRITE_4(sc, TI_GCR_RX_COAL_TICKS, (sc->ti_rx_coal_ticks / 10)); else @@ -2395,7 +2395,7 @@ void ti_init2(sc) panic("not enough mbufs for rx ring"); /* Init jumbo RX ring. */ - if (ifp->if_mtu > (ETHERMTU + ETHER_HDR_LEN + ETHER_CRC_LEN)) + if (ifp->if_mtu > ETHER_MAX_LEN) ti_init_rx_ring_jumbo(sc); /* |