diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-10-14 18:01:54 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-10-14 18:01:54 +0000 |
commit | cbc88b3c14c04595503ce45046c13a37f77b5385 (patch) | |
tree | 71c6224ee28a75e73b9d01d08760ae100cbe250b /sys/dev/ic/dc.c | |
parent | 8e9707c8a7ef0ba1ba66f02dfad7dda445bf55c5 (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/dev/ic/dc.c')
-rw-r--r-- | sys/dev/ic/dc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index 1f6be3b776e..232494a990b 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.104 2008/10/02 20:21:13 brad Exp $ */ +/* $OpenBSD: dc.c,v 1.105 2008/10/14 18:01:53 naddy Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2183,15 +2183,14 @@ dc_rxeof(struct dc_softc *sc) total_len -= ETHER_CRC_LEN; m->m_pkthdr.rcvif = ifp; - m0 = m_devget(mtod(m, char *) - ETHER_ALIGN, - total_len + ETHER_ALIGN, 0, ifp, NULL); + m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN, + ifp, NULL); dc_newbuf(sc, i, m); DC_INC(i, DC_RX_LIST_CNT); if (m0 == NULL) { ifp->if_ierrors++; continue; } - m_adj(m0, ETHER_ALIGN); m = m0; ifp->if_ipackets++; |