diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-01 05:06:27 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-01 05:06:27 +0000 |
commit | 2d834460c00e74a0249a372e3890860ad6fbd1c8 (patch) | |
tree | 04a5d247f64efd5611bb41bcd838a5dc01ee0bc5 /sys/dev/pci | |
parent | 2e2f3572e18b92a40e11b918e6dd4b2c4f6c8585 (diff) |
vmware frames are slightly short, but that is ok. done with clues from
brad@
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; } |