On Fri, Sep 09, 2016 at 08:12:52PM -0700, Tom Herbert wrote: > >> That probably means that the stack will always win out under load. > >> Trying to used the same queue where half of the packets are well > >> managed by a qdisc and half aren't is going to leave someone unhappy. > >> Maybe in the this case where we have to share the qdisc we can > >> allocate the skb on on returning XDP_TX and send through the normal > >> qdisc for the device. > > > > I wouldn't go to such extremes for e1k. > > The only reason to have xdp in e1k is to use it for testing > > of xdp programs. Nothing else. e1k is, best case, 1Gbps adapter. > > I imagine someone may want this for the non-forwarding use cases like > early drop for DOS mitigation.
Sure and they will be doing it on the NICs that they have in their servers. e1k is not that nic. xdp e1k is for debugging xdp programs in KVM only. Performance of such xdp programs on e1k is irrelevant. There is absolutely no need to complicate the driver and the patches. All other drivers is a different story.