On 9/14/26 3:34 PM, Zhuoying Cai wrote:
The virtio-net device used a fixed header size that did not account for the num_buffers field used in VirtIO 1.0. Use dynamic header sizing: 10 bytes for legacy mode and 12 bytes for VirtIO 1.0. This ensures correct packet handling across different VirtIO configurations. The VirtioNetHdr and VirtioNetHdrMrgRxbuf structures replicate the same field layout as struct virtio_net_hdr and struct virtio_net_hdr_mrg_rxbuf defined in inux/uapi/linux/virtio_net.h. Signed-off-by: Zhuoying Cai <[email protected]> ---
With the correction to the file path that Christian pointed out, Reviewed-by: Jared Rossi <[email protected]>
