Re: [PATCH net-next v3 0/4] net: lan966x: Add xdp support

From: Alexander Lobakin
Date: Thu Nov 10 2022 - 11:25:19 EST


From: Andrew Lunn <andrew@xxxxxxx>
Date: Thu, 10 Nov 2022 14:57:35 +0100

> > Nice stuff! I hear time to time that XDP is for 10G+ NICs only, but
> > I'm not a fan of such, and this series proves once again XDP fits
> > any hardware ^.^
>
> The Freescale FEC recently gained XDP support. Many variants of it are
> Fast Ethernet only.
>
> What i found most interesting about that patchset was that the use of
> the page_ppol API made the driver significantly faster for the general
> case as well as XDP.

The driver didn't have any page recycling or page splitting logics,
while Page Pool recycles even pages from skbs if
skb_mark_for_recycle() is used, which is the case here. So it
significantly reduced the number of new page allocations for Rx, if
there still are any at all.
Plus, Page Pool allocates pages by bulks (of 16 IIRC), not one by
one, that reduces CPU overhead as well.

>
> Andrew

Thanks,
Olek