virtio-pci (modern): use rings of at most 32 slots. virtio-net keeps every receive slot filled, so the ring size is memory: about 2 MB at PVE's 1024, 64 KiB at 32. Needs 300-stop-negotiating-net-offloads: with offloads a single received packet can need more buffers than the ring holds. --- a/drivers/virtio/virtio_pci_modern.c 2026-10-04 20:42:00.440388753 +0200 +++ b/drivers/virtio/virtio_pci_modern.c 2026-10-04 20:42:00.476388533 +0200 @@ -708,6 +708,14 @@ return ERR_PTR(-EINVAL); num = vp_modern_get_queue_size(mdev, index); + /* + * PLANCK: the driver may use a smaller ring than the device offers (virtio 1.x, 4.1.4.3). A + * net device keeps every receive slot filled with a buffer, so the ring size IS memory: 1024 + * slots (PVE's default) hold about 2 MB, 32 hold 64 KiB. 32 is the smallest power of two above + * the 19 free slots virtio-net wants before it restarts its send queue (2 + MAX_SKB_FRAGS). + */ + if (num > 32) + num = 32; /* Check if queue is either not available or already active. */ if (!num || vp_modern_get_queue_enable(mdev, index)) return ERR_PTR(-ENOENT);