From: Tom Herbert <t...@herbertland.com> Date: Tue, 21 Feb 2017 08:35:41 -0800
> We already have good APIs for similar datapath functionality (GRO, > GSO, xmit_more, etc.), and I don't see why XDP is so special that we > can't come up with a reasonable API for batching and implement it. What you are missing is that it wasn't always this way. The initial TSO support was a hodge-podge of weird driver APIs and simple heuristics thrown all over the place. It was ugly but worked and allowed us to experiment. We had to adjust driver internals a lot until on the way towards getting things how they are today. This is the natural course of things, so please don't suggest that XDP shouldn't evolve in the same way. I think we really need to be fast and loose right now and only try to constrict and perfect the API after some of this initial activity has died down. Yes it's more work for the brave drivers that add XDP support, but unfortunately that's how we figure out what's really needed and works in the long term.