RE: [Intel-wired-lan] [PATCH iwl-next v9 5/6] igb: Add AF_XDP zero-copy Rx support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of
> Kurt Kanzenbach
> Sent: Friday, October 18, 2024 1:40 AM
> To: Nguyen, Anthony L <anthony.l.nguyen@xxxxxxxxx>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@xxxxxxxxx>
> Cc: 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>; Jesper Dangaard Brouer
> <hawk@xxxxxxxxxx>; John Fastabend <john.fastabend@xxxxxxxxx>; Richard
> Cochran <richardcochran@xxxxxxxxx>; Sriram Yagnaraman
> <sriram.yagnaraman@xxxxxxxxxxxx>; Benjamin Steinke
> <benjamin.steinke@xxxxxxxxxxxxxx>; Sebastian Andrzej Siewior
> <bigeasy@xxxxxxxxxxxxx>; Fijalkowski, Maciej <maciej.fijalkowski@xxxxxxxxx>;
> intel-wired-lan@xxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx;
> bpf@xxxxxxxxxxxxxxx; Sriram Yagnaraman <sriram.yagnaraman@xxxxxxxx>;
> Kurt Kanzenbach <kurt@xxxxxxxxxxxxx>
> Subject: [Intel-wired-lan] [PATCH iwl-next v9 5/6] igb: Add AF_XDP zero-copy
> Rx support
> 
> From: Sriram Yagnaraman <sriram.yagnaraman@xxxxxxxx>
> 
> Add support for AF_XDP zero-copy receive path.
> 
> When AF_XDP zero-copy is enabled, the rx buffers are allocated from the xsk
> buff pool using igb_alloc_rx_buffers_zc().
> 
> Use xsk_pool_get_rx_frame_size() to set SRRCTL rx buf size when zero-copy is
> enabled.
> 
> Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@xxxxxxxx>
> [Kurt: Port to v6.12 and provide napi_id for xdp_rxq_info_reg(),
>        RCT, remove NETDEV_XDP_ACT_XSK_ZEROCOPY, update NTC handling,
>        READ_ONCE() xsk_pool, likelyfy for XDP_REDIRECT case]
> Signed-off-by: Kurt Kanzenbach <kurt@xxxxxxxxxxxxx>
> Acked-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>
> ---
>  drivers/net/ethernet/intel/igb/igb.h      |   6 +
>  drivers/net/ethernet/intel/igb/igb_main.c |  79 ++++++--
> drivers/net/ethernet/intel/igb/igb_xsk.c  | 294
> +++++++++++++++++++++++++++++-
>  3 files changed, 360 insertions(+), 19 deletions(-)
> 

Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@xxxxxxxxx>





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux