From cbc88b3c14c04595503ce45046c13a37f77b5385 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Tue, 14 Oct 2008 18:01:54 +0000 Subject: 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@ --- sys/dev/pci/if_bge.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/dev/pci/if_bge.c') 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 { -- cgit v1.2.3