summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mtd8xx.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-09-28 04:37:34 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-09-28 04:37:34 +0000
commit267950b8c179932ae962ef12a5b948859960053f (patch)
treeaf66f872e0cb4a4d7847459627081f69a1a11cea /sys/dev/ic/mtd8xx.c
parent3c36291f48c6d2b38db39aeed2692314031f8214 (diff)
Use ETHER_MAX_DIX_LEN/ETHER_MIN_LEN
Diffstat (limited to 'sys/dev/ic/mtd8xx.c')
-rw-r--r--sys/dev/ic/mtd8xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c
index f711c70f7b9..df72c1cd56b 100644
--- a/sys/dev/ic/mtd8xx.c
+++ b/sys/dev/ic/mtd8xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtd8xx.c,v 1.6 2004/09/23 17:45:16 brad Exp $ */
+/* $OpenBSD: mtd8xx.c,v 1.7 2004/09/28 04:37:32 brad Exp $ */
/*
* Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru>
@@ -538,7 +538,7 @@ mtd_newbuf(struct mtd_softc *sc, int i, struct mbuf *m)
c->rd_buf = htole32(
sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_segs[0].ds_addr +
sizeof(u_int64_t));
- c->rd_rcw = htole32(MTD_RXLEN);
+ c->rd_rcw = htole32(ETHER_MAX_DIX_LEN);
c->rd_rsr = htole32(RSR_OWN);
bus_dmamap_sync(sc->sc_dmat, sc->sc_listmap,