diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-08 02:59:52 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-08 02:59:52 +0000 |
commit | 70577c8ba326731615fbca04fee11092e246d519 (patch) | |
tree | 7cd07c1f9eaa3ea65ff21dc79bc7f4e81328b8ea /sys/arch/sparc64 | |
parent | f05aaf3eada2f1e60c1a67ce162c98c7f89103c9 (diff) |
the way vnet works means mclgeti cant do its job. remove hte ifp
argument to MCLGETI to make that clear.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/vnet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/vnet.c b/sys/arch/sparc64/dev/vnet.c index cb7554a5647..b594c8106bd 100644 --- a/sys/arch/sparc64/dev/vnet.c +++ b/sys/arch/sparc64/dev/vnet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnet.c,v 1.31 2014/05/10 11:49:31 kettenis Exp $ */ +/* $OpenBSD: vnet.c,v 1.32 2014/07/08 02:59:51 dlg Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -805,8 +805,7 @@ vnet_rx_vio_dring_data(struct vnet_softc *sc, struct vio_msg_tag *tag) if (desc.hdr.dstate != VIO_DESC_READY) break; - m = MCLGETI(NULL, M_DONTWAIT, &sc->sc_ac.ac_if, - MCLBYTES); + m = MCLGETI(NULL, M_DONTWAIT, NULL, desc.nbytes); if (!m) break; ifp->if_ipackets++; |