> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of > Alexander Lobakin > Sent: Tuesday, August 26, 2025 9:25 PM > To: intel-wired-lan@xxxxxxxxxxxxxxxx > Cc: Lobakin, Aleksander <aleksander.lobakin@xxxxxxxxx>; Kubiak, Michal > <michal.kubiak@xxxxxxxxx>; Fijalkowski, Maciej > <maciej.fijalkowski@xxxxxxxxx>; Nguyen, Anthony L > <anthony.l.nguyen@xxxxxxxxx>; Kitszel, Przemyslaw > <przemyslaw.kitszel@xxxxxxxxx>; Andrew Lunn <andrew+netdev@xxxxxxx>; > David S. Miller <davem@xxxxxxxxxxxxx>; Eric Dumazet > <edumazet@xxxxxxxxxx>; Jakub Kicinski <kuba@xxxxxxxxxx>; Paolo Abeni > <pabeni@xxxxxxxxxx>; Alexei Starovoitov <ast@xxxxxxxxxx>; Daniel > Borkmann <daniel@xxxxxxxxxxxxx>; Simon Horman <horms@xxxxxxxxxx>; > NXNE CNSE OSDT ITP Upstreaming > <nxne.cnse.osdt.itp.upstreaming@xxxxxxxxx>; bpf@xxxxxxxxxxxxxxx; > netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx > 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@xxxxxxxxx> > --- > 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 <ramu.r@xxxxxxxxx>