On Sun, 15 Nov 2026 23:36:34 +0000 Tianyi Gao wrote:
> On Sun, 15 Nov 2026 11:39:02 -0800 Jakub Kicinski wrote:
> > On Wed, 11 Nov 2026 01:07:46 +0000 Tianyi Gao wrote:
> > > - On veth, an XDP program removes software GSO from the peer, limits
> > > its MTU, and can copy skbs from the peer.
> >
> > Could you remind us why you XDP_REDIRECT xdp_frames to the veth
> > if you end up allocating the skb on the veth, anyway?
> >
> > I thought that was to let veth run its own prog before skb is allocated
> > but you're saying that you want to avoid veth having a prog, so clearly
> > it's not that.
>
> Thank you for your comment!
>
> XDP_REDIRECT into a veth without a program on it has been supported
> since commit 0e672f306a28 ("veth: check for NAPI instead of xdp_prog
> before xmit of XDP frame"). There is demand for it [1].
>
> With or without a program on the veth, and on cpumap, this series
> keeps the RX metadata from the NIC until the skb is built.
>
> [1] https://lore.kernel.org/all/20210416175929.35c3c389@carbon/
Perhaps I'm slow but I don't see how this answers my question.
I read your reply as "the config is supported and my team uses it".
The question is _why_ you use it. Let's leave the cpumap case aside,
you provided no legitimate reason why having an XDP prog in that case
is a problem. With veth - you are right that attaching XDP causes
problems for pure skb traffic. For veth cases, however, there's no
strong reason to delay the skb allocation. Hence my question.
Why not let the driver allocate the skb if we know that the
redirect target will need to allocate one, anyway.
Since your patches are not a natural / clean extension of the existing
infrastructure - we should step back and make sure the use case is
practically justified.