summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gemvar.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-12-14 21:31:51 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-12-14 21:31:51 +0000
commit246801b33c942e2bc62ca994cf8b5bb720784d7f (patch)
treef5656840b1df1a5d06c7ec4a043e0c17377fbc81 /sys/dev/ic/gemvar.h
parent049395db06f425f4526e9a1bff4d7dcd3c507c7e (diff)
Switch gem(4) over to using MCLGETI when allocating mbufs for the rx ring.
help from dlg@, tested by a few, ok dlg@
Diffstat (limited to 'sys/dev/ic/gemvar.h')
-rw-r--r--sys/dev/ic/gemvar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/gemvar.h b/sys/dev/ic/gemvar.h
index cf394795928..1abe2ce3cfa 100644
--- a/sys/dev/ic/gemvar.h
+++ b/sys/dev/ic/gemvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gemvar.h,v 1.19 2008/11/07 18:03:52 brad Exp $ */
+/* $OpenBSD: gemvar.h,v 1.20 2008/12/14 21:31:50 kettenis Exp $ */
/* $NetBSD: gemvar.h,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -175,6 +175,7 @@ struct gem_softc {
u_int32_t sc_tx_cnt, sc_tx_prod, sc_tx_cons;
struct gem_rxsoft sc_rxsoft[GEM_NRXDESC];
+ u_int32_t sc_rx_cnt, sc_rx_prod, sc_rx_cons;
/*
* Control data structures.
@@ -191,7 +192,6 @@ struct gem_softc {
u_int32_t sc_setup_fsls; /* FS|LS on setup descriptor */
- int sc_rxptr; /* next ready RX descriptor/descsoft */
int sc_rxfifosize;
/* ========== */
@@ -262,7 +262,6 @@ do { \
struct gem_desc *__rxd = &sc->sc_rxdescs[(x)]; \
struct mbuf *__m = __rxs->rxs_mbuf; \
\
- __m->m_data = __m->m_ext.ext_buf; \
__rxd->gd_addr = \
GEM_DMA_WRITE((sc), __rxs->rxs_dmamap->dm_segs[0].ds_addr); \
__rxd->gd_flags = \