RE: [Intel-wired-lan] [PATCH intel-next v6 3/8] i40e: add pre-xdp page_count in rx_buffer

[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 3/8] i40e: add pre-xdp
>page_count in rx_buffer
>
>Page count of rx_buffer needs to be stored prior to XDP call to prevent page
>recycling in case that buffer would be freed within xdp redirect path. Instead
>of storing it on the stack, now it is stored in the rx_buffer struct. This will help
>in processing multi-buffers as the page counts of all rx_buffers (of the same
>packet) don't need to be stored on stack.
>
>Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@xxxxxxxxx>
>---
> drivers/net/ethernet/intel/i40e/i40e_txrx.c | 23 +++++++--------------
>drivers/net/ethernet/intel/i40e/i40e_txrx.h |  1 +
> 2 files changed, 9 insertions(+), 15 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