summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-24 20:27:04 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-24 20:27:04 +0000
commite54cb0e010ad22138c636da51d6b86a95f8b4794 (patch)
tree6edcd846a448208b47118126091aa62444060402 /sys/dev/pci/if_vr.c
parentca369e064f838ab5f94b89dc067ac7f8768e0b4c (diff)
more ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 2d93dbe5c91..f095cb9b426 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.15 2001/05/16 13:41:27 aaron Exp $ */
+/* $OpenBSD: if_vr.c,v 1.16 2001/06/24 20:27:02 fgsch Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -917,7 +917,6 @@ void
vr_rxeof(sc)
struct vr_softc *sc;
{
- struct ether_header *eh;
struct mbuf *m;
struct ifnet *ifp;
struct vr_chain_onefrag *cur_rx;
@@ -996,7 +995,6 @@ vr_rxeof(sc)
m = m0;
ifp->if_ipackets++;
- eh = mtod(m, struct ether_header *);
#if NBPFILTER > 0
/*
@@ -1005,9 +1003,8 @@ vr_rxeof(sc)
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
#endif
- /* Remove header from mbuf and pass it on. */
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ /* pass it on. */
+ ether_input_mbuf(ifp, m);
}
return;