Re: [PATCH] virtio-net: Fix num_buffers for version 1

2025-01-09 Thread Lei Yang
I tested this patch with virtio-net regression tests and tests "mrg_rxbuf" on/off status with netperf tests, everything works fine. Tested-by: Lei Yang On Wed, Jan 8, 2025 at 8:23 PM Akihiko Odaki wrote: > > The specification says the device MUST set num_buffers to 1 if > VIRTIO_NET_F_MRG_RXBUF

[PATCH] virtio-net: Fix num_buffers for version 1

2025-01-08 Thread Akihiko Odaki
The specification says the device MUST set num_buffers to 1 if VIRTIO_NET_F_MRG_RXBUF has not been negotiated. Fixes: df91055db5c9 ("virtio-net: enable virtio 1.0") Signed-off-by: Akihiko Odaki --- hw/net/virtio-net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/net/virtio-net.c b/hw