diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-13 08:45:49 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-13 08:45:49 +0000 |
commit | 6519c8e60e1f060fbf796f09849009a73dc50960 (patch) | |
tree | 89dc532353aff66d9b1a4febe9c1322ed583fc6d /sys/kern | |
parent | 2849e39274acc215a2d8144fb3732b636087abff (diff) |
Now that if_input() set the receiving interface pointer on mbufs for us
there's no need to do it in m_devget(9).
Stop passing an ``ifp'' will help for upcoming interface pointer -> index
conversion.
While here remove unused ``ifp'' argument from m_clget(9) and kill two
birds^W layer violations in one commit.
ok henning@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index eb01ae9a8f0..704bc98af1e 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.202 2015/03/14 03:38:51 jsg Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.203 2015/04/13 08:45:48 mpi Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -278,7 +278,7 @@ m_clpool(u_int pktlen) } struct mbuf * -m_clget(struct mbuf *m, int how, struct ifnet *ifp, u_int pktlen) +m_clget(struct mbuf *m, int how, u_int pktlen) { struct mbuf *m0 = NULL; struct pool *pp; @@ -1024,7 +1024,7 @@ extpacket: * Routine to copy from device local memory into mbufs. */ struct mbuf * -m_devget(char *buf, int totlen, int off, struct ifnet *ifp) +m_devget(char *buf, int totlen, int off) { struct mbuf *m; struct mbuf *top, **mp; @@ -1040,7 +1040,6 @@ m_devget(char *buf, int totlen, int off, struct ifnet *ifp) if (m == NULL) return (NULL); - m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = totlen; len = MHLEN; |