On Tue, Jan 12, 2021, at 14:03, Jason Wang wrote: > > On 2021/1/9 上午10:49, Charlie Somerville wrote: > > This patch series introduces a new flag XDP_FLAGS_NO_TX which prevents > > the allocation of additional send queues for XDP programs. > > > This part I don't understand. Is such flag a must? I think the answer is > probably not. > > Why not simply do: > > 1) if we had sufficient TX queues, use dedicated TX queues for XDP_TX > 2) if we don't, simple synchronize through spin_lock[1] > > Thanks > > [1] https://www.spinics.net/lists/bpf/msg32587.html
The patch from Xuan Zhuo looks like a much better approach. I am happy to close this out in favour of that one! Thanks for the link.