RE: [Intel-wired-lan] [PATCH intel-next v6 7/8] i40e: add xdp_buff to i40e_ring struct

[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
>Sarkar, Tirthendu
>Sent: 18 February 2023 00:45
>To: intel-wired-lan@xxxxxxxxxxxxxxxx
>Cc: Sarkar, Tirthendu <tirthendu.sarkar@xxxxxxxxx>; netdev@xxxxxxxxxxxxxxx;
>Brandeburg, Jesse <jesse.brandeburg@xxxxxxxxx>; Nguyen, Anthony L
><anthony.l.nguyen@xxxxxxxxx>; bpf@xxxxxxxxxxxxxxx; Karlsson, Magnus
><magnus.karlsson@xxxxxxxxx>
>Subject: [Intel-wired-lan] [PATCH intel-next v6 7/8] i40e: add xdp_buff to
>i40e_ring struct
>
>Store xdp_buff on Rx ring struct in preparation for XDP multi-buffer support.
>This will allow us to combine fragmented frames across separate NAPI cycles
>in the same way as currently skb fragments are handled. This means that skb
>pointer on Rx ring will become redundant and will be removed in a later patch.
>As a consequence i40e_trace() now uses xdp instead of skb pointer.
>
>Truesize only needs to be calculated for page sizes bigger than 4k as it is
>always half-page for 4k pages. With xdp_buff on ring, frame size can now be
>set during xdp_init_buff() and need not be repopulated in each NAPI call for
>4k pages. As a consequence i40e_rx_frame_truesize() is now used only for
>bigger pages.
>
>Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@xxxxxxxxx>
>---
> drivers/net/ethernet/intel/i40e/i40e_main.c  |  2 ++
>drivers/net/ethernet/intel/i40e/i40e_trace.h | 20 ++++++------
>drivers/net/ethernet/intel/i40e/i40e_txrx.c  | 33 ++++++++------------
>drivers/net/ethernet/intel/i40e/i40e_txrx.h  |  7 +++++
> 4 files changed, 32 insertions(+), 30 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