On 11/22/19 9:57 AM, Jesper Dangaard Brouer wrote: > Implementation wise, I would not add flags to xdp_buff / xdp_md. > Instead I propose in[1] slide 46, that the verifier should detect the > XDP features used by a BPF-prog. If you XDP prog doesn't use e.g. > XDP_TX, then you should be allowed to run it on a virtio_net device > with less queue configured, right? Thanks for the reference and yes, that is the goal: allow XDP in the most use cases possible. e.g., Why limit XDP_DROP which requires no resources because XDP_TX does not work? I agree a flag in the api is an ugly way to allow it. For the verifier approach, you mean add an internal flag (e.g., bitmask of return codes) that the program uses and the NIC driver can check at attach time?