[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220304102214.25903-1-simon.horman@corigine.com>
Date: Fri, 4 Mar 2022 11:22:09 +0100
From: Simon Horman <simon.horman@...igine.com>
To: David Miller <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Niklas Söderlund <niklas.soderlund@...igine.com>
Cc: netdev@...r.kernel.org, oss-drivers@...igine.com
Subject: Add AF_XDP zero-copy support for NFP
Niklas Söderlund says:
This series adds AF_XDP zero-copy support for the NFP driver. The series
is based on previous work done by Jakub Kicinski.
Patch 1/5 and 2/5 prepares the driver for AF_XDP support by refactoring
functions that will act differently once AF_XDP is active or not making
the driver easier to read and by preparing some functions to be reused
outside the local file scope. Patch 3/5 and 4/5 prepares the driver for
dealing the UMEM while finally patch 5/5 adds AF_XDP support.
Based on work by Jakub Kicinski.
Jakub Kicinski (1):
nfp: wrap napi add/del logic
Niklas Söderlund (4):
nfp: expose common functions to be used for AF_XDP
nfp: xsk: add an array of xsk buffer pools to each data path
nfp: xsk: add configuration check for XSK socket chunk size
nfp: xsk: add AF_XDP zero-copy Rx and Tx support
drivers/net/ethernet/netronome/nfp/Makefile | 1 +
drivers/net/ethernet/netronome/nfp/nfp_net.h | 47 +-
.../ethernet/netronome/nfp/nfp_net_common.c | 207 ++++--
.../ethernet/netronome/nfp/nfp_net_debugfs.c | 33 +-
.../net/ethernet/netronome/nfp/nfp_net_xsk.c | 592 ++++++++++++++++++
.../net/ethernet/netronome/nfp/nfp_net_xsk.h | 29 +
6 files changed, 855 insertions(+), 54 deletions(-)
create mode 100644 drivers/net/ethernet/netronome/nfp/nfp_net_xsk.c
create mode 100644 drivers/net/ethernet/netronome/nfp/nfp_net_xsk.h
--
2.20.1
Powered by blists - more mailing lists