diff options
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_vic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index 459ecffafcd..a4e426d8316 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.12 2006/11/01 04:34:23 dlg Exp $ */ +/* $OpenBSD: if_vic.c,v 1.13 2006/11/01 05:06:26 dlg Exp $ */ /* * Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org> @@ -75,6 +75,8 @@ int vic_debug = 0; #define VIC_TIMER_DELAY 2 #define VIC_TIMER_MS(_ms) (_ms * hz / 1000) +#define VIC_MIN_FRAMELEN (ETHER_MIN_LEN - ETHER_CRC_LEN) + #define VIC_TXURN_WARN(_sc) ((_sc)->sc_txpending >= ((_sc)->sc_ntxbuf - 5)) #define VIC_TXURN(_sc) ((_sc)->sc_txpending >= (_sc)->sc_ntxbuf) #define VIC_OFF_TXDESC(_n) \ @@ -550,7 +552,7 @@ vic_rx_proc(struct vic_softc *sc) rxb = &sc->sc_rxbuf[idx]; len = rxd->rx_length; - if (len < ETHER_MIN_LEN) { + if (len < VIC_MIN_FRAMELEN) { ifp->if_iqdrops++; goto nextp; } |