On 9/3/26 12:24 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 or for the mergeable receive > buffers feature. > > Use dynamic header sizing: 10 bytes for legacy mode and 12 bytes for > VirtIO 1.0 or when VIRTIO_NET_F_MRG_RXBUF is enabled. This ensures > correct packet handling across different VirtIO configurations. > Since you're already touching this patch based on Jared's comment, maybe add a small blurb here that you are replicating the same structure mappings as defined in the uapi.
Thanks, Matt
