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/arch | |
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/arch')
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/vnet.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 69202b34cc3..f2c48147eba 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.68 2015/04/08 10:07:47 mpi Exp $ */ +/* $OpenBSD: hme.c,v 1.69 2015/04/13 08:45:48 mpi Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -828,7 +828,7 @@ hme_read(sc, idx, len, flags) /* Pull packet off interface. */ m = m_devget(sc->sc_bufs->rx_buf[idx] + HME_RX_OFFSET, len, - HME_RX_OFFSET, &sc->sc_arpcom.ac_if); + HME_RX_OFFSET); if (m == NULL) { ifp->if_ierrors++; return; diff --git a/sys/arch/sparc64/dev/vnet.c b/sys/arch/sparc64/dev/vnet.c index 5b011e86acd..505a8491941 100644 --- a/sys/arch/sparc64/dev/vnet.c +++ b/sys/arch/sparc64/dev/vnet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnet.c,v 1.43 2015/04/02 09:46:48 kettenis Exp $ */ +/* $OpenBSD: vnet.c,v 1.44 2015/04/13 08:45:48 mpi Exp $ */ /* * Copyright (c) 2009, 2015 Mark Kettenis * @@ -734,7 +734,7 @@ vnet_rx_vio_desc_data(struct vnet_softc *sc, struct vio_msg_tag *tag) } /* Stupid OBP doesn't align properly. */ - m = m_devget(buf, dm->nbytes, ETHER_ALIGN, ifp); + m = m_devget(buf, dm->nbytes, ETHER_ALIGN); pool_put(&sc->sc_pool, buf); if (m == NULL) { ifp->if_ierrors++; |