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/pci/if_bge.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/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 539479badda..7ef02187d77 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.246 2008/10/02 20:21:14 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.247 2008/10/14 18:01:53 naddy Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2468,15 +2468,14 @@ bge_rxeof(struct bge_softc *sc) if (bge_newbuf_jumbo(sc, sc->bge_jumbo, NULL) == ENOBUFS) { struct mbuf *m0; - m0 = m_devget(mtod(m, char *) - ETHER_ALIGN, - cur_rx->bge_len - ETHER_CRC_LEN + - ETHER_ALIGN, 0, ifp, NULL); + m0 = m_devget(mtod(m, char *), + cur_rx->bge_len - ETHER_CRC_LEN, + ETHER_ALIGN, ifp, NULL); bge_newbuf_jumbo(sc, sc->bge_jumbo, m); if (m0 == NULL) { ifp->if_ierrors++; continue; } - m_adj(m0, ETHER_ALIGN); m = m0; } } else { |