[Intel-wired-lan] [PATCH v2 3/4] i40e: clean zero-copy XDP Rx ring on shutdown/reset

Bowers, AndrewX andrewx.bowers at intel.com
Tue Sep 11 21:58:29 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Björn Töpel
> Sent: Friday, September 7, 2018 1:19 AM
> To: ast at kernel.org; daniel at iogearbox.net; Kirsher, Jeffrey T
> <jeffrey.t.kirsher at intel.com>; intel-wired-lan at lists.osuosl.org;
> jakub.kicinski at netronome.com
> Cc: netdev at vger.kernel.org; Topel, Bjorn <bjorn.topel at intel.com>;
> magnus.karlsson at gmail.com; Karlsson, Magnus
> <magnus.karlsson at intel.com>
> Subject: [Intel-wired-lan] [PATCH v2 3/4] i40e: clean zero-copy XDP Rx ring on
> shutdown/reset
> 
> From: Björn Töpel <bjorn.topel at intel.com>
> 
> Outstanding Rx descriptors are temporarily stored on a stash/reuse queue.
> When/if the HW rings comes up again, entries from the stash are used to re-
> populate the ring.
> 
> The latter required some restructuring of the allocation scheme for the
> AF_XDP zero-copy implementation. There is now a fast, and a slow
> allocation. The "fast allocation" is used from the fast-path and obtains free
> buffers from the fill ring and the internal recycle mechanism. The "slow
> allocation" is only used in ring setup, and obtains buffers from the fill ring and
> the stash (if any).
> 
> Signed-off-by: Björn Töpel <bjorn.topel at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_txrx.c   |   4 +-
>  .../ethernet/intel/i40e/i40e_txrx_common.h    |   1 +
>  drivers/net/ethernet/intel/i40e/i40e_xsk.c    | 100 ++++++++++++++++--
>  3 files changed, 96 insertions(+), 9 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list