Hi Alexandre, On 26/11/2026 14:43, Alexandre Cassen wrote:
> setup is Xeon Gold 6342 (DDIO) wiht ConnectX-7 (fw 28.48.1000): 2 ports > x 8 queues. 5G UPF in XDP (GTP-U and MAP-E, ~3200 insns per packet, > XDP_TX only) with 100k sessions running live mobile network traffic > pattern.
Thanks a lot for testing this on a DDIO system with CX-7! This is exactly the data I was missing :-)
> With DDIO the gain depends on the history of the RQ. Under XDP a stride > is a page. While the pages of a WQE are adjacent the L1 stride > prefetcher fetches the next packet by itself. Once XDP_TX completions > overflow the page pool cache then pages come back shuffled where the > vanilla driver loses 5%.
Interesting...That fits the idea behind the patch: once the pages of a WQE are no longer adjacent, only the explicit look-ahead can still find the next packet.
> cosmetics: BIT(rq->mpwqe.page_shift) - 1
Agreed, I'll switch to BIT() if a v3 is needed..
> For our tunneling use-case I just added: > > + net_prefetch(va + rq->buff.headroom + 128);
Makes sense for GTP-U, where the inner headers you parse start beyond the first two lines. This said, I'd keep the driver at the outer headers, though: for untunnelled traffic the extra line is never touched, and the right amount depends on the encapsulation.
> I will run production with your patch with the +128 for our stuff... > thanks for that !
Thank you! Please let us know how it behaves! :-) Cheers,
-- Antonio Quartulli Mandelbit Srl https://www.mandelbit.com