RE: [Intel-wired-lan] [PATCH iwl-next v5 4/4] igb: add AF_XDP zero-copy Tx 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, July 12, 2024 2:26 PM
>To: Nguyen, Anthony L <anthony.l.nguyen@xxxxxxxxx>; Kitszel, Przemyslaw
><przemyslaw.kitszel@xxxxxxxxx>
>Cc: Jesper Dangaard Brouer <hawk@xxxxxxxxxx>; Daniel Borkmann
><daniel@xxxxxxxxxxxxx>; Sriram Yagnaraman
><sriram.yagnaraman@xxxxxxxxxxxx>; Richard Cochran
><richardcochran@xxxxxxxxx>; Kurt Kanzenbach <kurt@xxxxxxxxxxxxx>; John
>Fastabend <john.fastabend@xxxxxxxxx>; Alexei Starovoitov <ast@xxxxxxxxxx>;
>Benjamin Steinke <benjamin.steinke@xxxxxxxxxxxxxx>; Eric Dumazet
><edumazet@xxxxxxxxxx>; Sriram Yagnaraman
><sriram.yagnaraman@xxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx;
>netdev@xxxxxxxxxxxxxxx; Jakub Kicinski <kuba@xxxxxxxxxx>;
>bpf@xxxxxxxxxxxxxxx; Paolo Abeni <pabeni@xxxxxxxxxx>; David S. Miller
><davem@xxxxxxxxxxxxx>; Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
>Subject: [Intel-wired-lan] [PATCH iwl-next v5 4/4] igb: add AF_XDP zero-copy
>Tx support
>
>From: Sriram Yagnaraman <sriram.yagnaraman@xxxxxxxx>
>
>Add support for AF_XDP zero-copy transmit path.
>
>A new TX buffer type IGB_TYPE_XSK is introduced to indicate that the Tx frame
>was allocated from the xsk buff pool, so igb_clean_tx_ring and igb_clean_tx_irq
>can clean the buffers correctly based on type.
>
>igb_xmit_zc performs the actual packet transmit when AF_XDP zero-copy is
>enabled. We share the TX ring between slow path, XDP and AF_XDP zero-copy,
>so we use the netdev queue lock to ensure mutual exclusion.
>
>Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@xxxxxxxx>
>[Kurt: Set olinfo_status in igb_xmit_zc() so that frames are transmitted]
>Signed-off-by: Kurt Kanzenbach <kurt@xxxxxxxxxxxxx>
>---
> drivers/net/ethernet/intel/igb/igb.h      |  2 ++
> drivers/net/ethernet/intel/igb/igb_main.c | 56
>++++++++++++++++++++++++++-----
>drivers/net/ethernet/intel/igb/igb_xsk.c  | 53
>+++++++++++++++++++++++++++++
> 3 files changed, 102 insertions(+), 9 deletions(-)
>

Tested-by: Chandan Kumar Rout <chandanx.rout@xxxxxxxxx> (A Contingent Worker at Intel)





[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