summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-25 02:18:49 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-25 02:18:49 +0000
commitc7cd2c1beb54e4f005bfd656f06eb2db6ed7cbe2 (patch)
treedc10880ba942004957ef842a2a25c9e125f99b67 /sys/dev/pci/if_sk.c
parent35821d4b137b32915ec7997db57bbf82afcf95c9 (diff)
trivial ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/pci/if_sk.c')
-rw-r--r--sys/dev/pci/if_sk.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index d85086a94d0..9c27992fc6a 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.12 2001/03/29 16:02:18 jason Exp $ */
+/* $OpenBSD: if_sk.c,v 1.13 2001/06/25 02:18:47 fgsch Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1327,7 +1327,6 @@ void sk_shutdown(v)
void sk_rxeof(sc_if)
struct sk_if_softc *sc_if;
{
- struct ether_header *eh;
struct mbuf *m;
struct ifnet *ifp;
struct sk_chain *cur_rx;
@@ -1381,15 +1380,13 @@ void sk_rxeof(sc_if)
}
ifp->if_ipackets++;
- eh = mtod(m, struct ether_header *);
#if NBPFILTER > 0
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);
}
sc_if->sk_cdata.sk_rx_prod = i;