vio(4): Fix hardmtu without MRG_RXBUF
authorsf <sf@openbsd.org>
Mon, 26 Aug 2024 19:24:02 +0000 (19:24 +0000)
committersf <sf@openbsd.org>
Mon, 26 Aug 2024 19:24:02 +0000 (19:24 +0000)
commit310c43a68b96daf4a131370c91fb1fec0e33da68
tree6a2208eee35f54d722706bc0886ea1c98c1154ad
parent1c25dff23c5c92e483ef069b8badf65beed6242c
vio(4): Fix hardmtu without MRG_RXBUF

Without VIRTIO_NET_F_MRG_RXBUF, we cannot chain several buffers together
and we can only receive packets up to the length of the buffers we put
into the ring.

OK bluhm@
sys/dev/pv/if_vio.c