On Wed, Jul 12, 2023 at 12:12 PM Willem de Bruijn <willemdebruijn.kernel@xxxxxxxxx> wrote: > > Basically, add to AF_XDP what we already have for its predecessor > AF_PACKET: setsockopt PACKET_VNET_HDR? > > Possibly with a separate new struct, rather than virtio_net_hdr. As > that has dependencies on other drivers, notably virtio and its > specification process. yeah. Forgot about this one. That's a perfect fit. I would reuse virtio_net_hdr as-is. Why reinvent the wheel? It would force uapi, but some might argue it's a good thing.