[Intel-wired-lan] [PATCH v2 2/4] net: xsk: add a simple buffer reuse queue
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Sep 11 22:00:03 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; magnus.karlsson at gmail.com; Karlsson, Magnus
> <magnus.karlsson at intel.com>
> Subject: [Intel-wired-lan] [PATCH v2 2/4] net: xsk: add a simple buffer reuse
> queue
>
> From: Jakub Kicinski <jakub.kicinski at netronome.com>
>
> XSK UMEM is strongly single producer single consumer so reuse of frames is
> challenging. Add a simple "stash" of FILL packets to reuse for drivers to
> optionally make use of. This is useful when driver has to free (ndo_stop) or
> resize a ring with an active AF_XDP ZC socket.
>
> v2: Fixed build issues for !CONFIG_XDP_SOCKETS.
>
> Signed-off-by: Jakub Kicinski <jakub.kicinski at netronome.com>
> ---
> include/net/xdp_sock.h | 69
> ++++++++++++++++++++++++++++++++++++++++++
> net/xdp/xdp_umem.c | 2 ++
> net/xdp/xsk_queue.c | 55 +++++++++++++++++++++++++++++++++
> net/xdp/xsk_queue.h | 3 ++
> 4 files changed, 129 insertions(+)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list