RE: [Intel-wired-lan] [PATCH iwl-next v5 10/13] idpf: use generic functions to build xdp_buff and skb
From: R, Ramu <hidden>
Date: 2025-09-04 16:21:41
Also in:
bpf, intel-wired-lan, lkml
-----Original Message----- From: Intel-wired-lan <redacted> On Behalf Of Alexander Lobakin Sent: Tuesday, August 26, 2025 9:25 PM To: intel-wired-lan@lists.osuosl.org Cc: Lobakin, Aleksander <aleksander.lobakin@intel.com>; Kubiak, Michal [off-list ref]; Fijalkowski, Maciej [off-list ref]; Nguyen, Anthony L [off-list ref]; Kitszel, Przemyslaw [off-list ref]; Andrew Lunn [off-list ref]; David S. Miller [off-list ref]; Eric Dumazet [off-list ref]; Jakub Kicinski [off-list ref]; Paolo Abeni [off-list ref]; Alexei Starovoitov [off-list ref]; Daniel Borkmann [off-list ref]; Simon Horman [off-list ref]; NXNE CNSE OSDT ITP Upstreaming [off-list ref]; bpf@vger.kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org Subject: [Intel-wired-lan] [PATCH iwl-next v5 10/13] idpf: use generic functions to build xdp_buff and skb In preparation of XDP support, move from having skb as the main frame container during the Rx polling to &xdp_buff. This allows to use generic and libeth helpers for building an XDP buffer and changes the logics: now we try to allocate an skb only when we processed all the descriptors related to the frame. Store &libeth_xdp_stash instead of the skb pointer on the Rx queue. It's only 8 bytes wider, but contains everything we may need. Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> --- drivers/net/ethernet/intel/idpf/idpf_txrx.h | 17 +- .../ethernet/intel/idpf/idpf_singleq_txrx.c | 104 ++++++------- drivers/net/ethernet/intel/idpf/idpf_txrx.c | 145 +++++------------- 3 files changed, 90 insertions(+), 176 deletions(-)
Tested-by: R,Ramu <redacted>