summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2008-10-14 18:01:53 +0000
committernaddy <naddy@openbsd.org>2008-10-14 18:01:53 +0000
commit726f1e82439c1428de93ce6b73c8465b84018b9f (patch)
tree323b3a975737123fb991acc7b59964b144235af0 /sys/dev/pci/if_vr.c
parentAdd luphy(4). (diff)
downloadwireguard-openbsd-726f1e82439c1428de93ce6b73c8465b84018b9f.tar.xz
wireguard-openbsd-726f1e82439c1428de93ce6b73c8465b84018b9f.zip
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_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index e4def20edf5..90d0d884645 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.78 2008/10/02 20:21:14 brad Exp $ */
+/* $OpenBSD: if_vr.c,v 1.79 2008/10/14 18:01:53 naddy Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -806,14 +806,13 @@ vr_rxeof(struct vr_softc *sc)
} else
#endif
{
- m0 = m_devget(mtod(m, caddr_t) - ETHER_ALIGN,
- total_len + ETHER_ALIGN, 0, ifp, NULL);
+ m0 = m_devget(mtod(m, caddr_t), total_len,
+ ETHER_ALIGN, ifp, NULL);
vr_alloc_mbuf(sc, cur_rx, m);
if (m0 == NULL) {
ifp->if_ierrors++;
continue;
}
- m_adj(m0, ETHER_ALIGN);
m = m0;
}