summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2008-10-14 18:01:54 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2008-10-14 18:01:54 +0000
commitcbc88b3c14c04595503ce45046c13a37f77b5385 (patch)
tree71c6224ee28a75e73b9d01d08760ae100cbe250b /sys/arch
parent8e9707c8a7ef0ba1ba66f02dfad7dda445bf55c5 (diff)
Change m_devget()'s outdated and unused "offset" argument: It is
now the offset into the first mbuf of the target chain before copying the source data over. From FreeBSD. Convert drivers' use of m_devget(). Mostly from thib@. Update mbuf(9) man page. ok claudio@, thib@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/dev/hme.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index a9984cb6b21..ef974a765cd 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.56 2008/10/02 20:21:13 brad Exp $ */
+/* $OpenBSD: hme.c,v 1.57 2008/10/14 18:01:53 naddy Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -953,13 +953,12 @@ hme_read(sc, idx, len, flags)
}
/* Pull packet off interface. */
- m = m_devget(sc->sc_bufs->rx_buf[idx], len + HME_RX_OFFSET, 0,
- &sc->sc_arpcom.ac_if, NULL);
+ m = m_devget(sc->sc_bufs->rx_buf[idx] + HME_RX_OFFSET, len,
+ HME_RX_OFFSET, &sc->sc_arpcom.ac_if, NULL);
if (m == NULL) {
ifp->if_ierrors++;
return;
}
- m_adj(m, HME_RX_OFFSET);
ifp->if_ipackets++;
hme_rxcksum(m, flags);