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

Rout, ChandanX chandanx.rout at intel.com
Mon Mar 6 04:23:27 UTC 2023



>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
>Sarkar, Tirthendu
>Sent: 18 February 2023 00:45
>To: intel-wired-lan at lists.osuosl.org
>Cc: Sarkar, Tirthendu <tirthendu.sarkar at intel.com>; netdev at vger.kernel.org;
>Brandeburg, Jesse <jesse.brandeburg at intel.com>; Nguyen, Anthony L
><anthony.l.nguyen at intel.com>; bpf at vger.kernel.org; Karlsson, Magnus
><magnus.karlsson at intel.com>
>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 at intel.com>
>---
> 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 at intel.com> (A Contingent Worker at Intel)


More information about the Intel-wired-lan mailing list