From: Stefan Fritsch Subject: vio: Fix dmamap size To: tech@openbsd.org Date: Mon, 12 Jan 2026 16:21:28 +0100 Hi, sc_rx_mbuf_size already includes the virtio header size, no need to add it again. noticed by helg@ ok? Cheers, Stefan --- sys/dev/pv/if_vio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c index 3d9233a7999..ea54f1947f1 100644 --- a/sys/dev/pv/if_vio.c +++ b/sys/dev/pv/if_vio.c @@ -534,8 +534,7 @@ vio_alloc_mem(struct vio_softc *sc, int tx_max_segments, bus_size_t txsize) for (i = 0; i < rxqsize; i++) { r = bus_dmamap_create(vsc->sc_dmat, - sc->sc_rx_mbuf_size + sc->sc_hdr_size, 2, - sc->sc_rx_mbuf_size, 0, + sc->sc_rx_mbuf_size, 2, sc->sc_rx_mbuf_size, 0, BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW | BUS_DMA_64BIT, &vioq->viq_rxdmamaps[i]); if (r != 0) -- 2.49.0