summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-09-20 17:58:34 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-09-20 17:58:34 +0000
commitbd04352a893eaa2c28a7cb87d2ae9a55ac2dee73 (patch)
tree227223cfc3726812ac7ea7d36d50029d7ecd2691 /sys
parent1090c37a2abb53f452afc18664a076f51e6f21b6 (diff)
undef HMEDEBUG by default, and maximum rx/tx size is
ETHERMTU + sizeof(struct ether_header) not ETHERMTU
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/hme.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c
index ece01db332d..651a6e8c8ca 100644
--- a/sys/dev/ic/hme.c
+++ b/sys/dev/ic/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.4 2001/08/29 05:33:10 jason Exp $ */
+/* $OpenBSD: hme.c,v 1.5 2001/09/20 17:58:33 jason Exp $ */
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
/*-
@@ -44,7 +44,7 @@
#include "bpfilter.h"
#include "vlan.h"
-#define HMEDEBUG
+#undef HMEDEBUG
#include <sys/param.h>
#include <sys/systm.h>
@@ -495,7 +495,7 @@ hme_init(sc)
bus_space_write_4(t, mac, HME_MACI_FCCNT, 0);
bus_space_write_4(t, mac, HME_MACI_EXCNT, 0);
bus_space_write_4(t, mac, HME_MACI_LTCNT, 0);
- v = ETHERMTU +
+ v = ETHERMTU + sizeof(struct ether_header) +
#if NVLAN > 0
EVL_ENCAPLEN +
#endif
@@ -527,7 +527,7 @@ hme_init(sc)
bus_space_write_4(t, etx, HME_ETXI_RSIZE, sc->sc_rb.rb_ntbuf);
bus_space_write_4(t, erx, HME_ERXI_RING, sc->sc_rb.rb_rxddma);
- v = ETHERMTU +
+ v = ETHERMTU + sizeof(struct ether_header) +
#if NVLAN > 0
EVL_ENCAPLEN +
#endif
@@ -737,7 +737,7 @@ hme_read(sc, ix, len)
struct mbuf *m;
if (len <= sizeof(struct ether_header) ||
- (len > ETHERMTU +
+ (len > ETHERMTU + sizeof(struct ether_header) +
#if NVLAN > 1
EVL_ENCAPLEN +
#endif