From: Simon Horman <simon.horman@corigine.com>
To: David Miller <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Leon Romanovsky <leon@kernel.org>,
Chentian Liu <chengtian.liu@corigine.com>,
Huanhuan Wang <huanhuan.wang@corigine.com>,
Yinjun Zhang <yinjun.zhang@corigine.com>,
Louis Peens <louis.peens@corigine.com>,
netdev@vger.kernel.org, oss-drivers@corigine.com
Subject: [PATCH net-next v4 0/3] nfp: IPsec offload support
Date: Thu, 17 Nov 2022 14:20:59 +0100 [thread overview]
Message-ID: <20221117132102.678708-1-simon.horman@corigine.com> (raw)
Huanhuan Wang says:
this series adds support for IPsec offload to the NFP driver.
It covers three enhancements:
1. Patches 1/3:
- Extend the capability word and control word to to support
new features.
2. Patch 2/3:
- Add framework to support IPsec offloading for NFP driver,
but IPsec offload control plane interface xfrm callbacks which
interact with upper layer are not implemented in this patch.
3. Patch 3/3:
- IPsec control plane interface xfrm callbacks are implemented
in this patch.
Changes since v3
* Remove structure fields that describe firmware but
are not used for Kernel offload
* Add WARN_ON(!xa_empty()) before call to xa_destroy()
* Added helpers for hash methods
Changes since v2
* OFFLOAD_HANDLE_ERROR macro and the associated code removed
* Unnecessary logging removed
* Hook function xdo_dev_state_free in struct xfrmdev_ops removed
* Use Xarray to maintain SA entries
Changes since v1
* Explicitly return failure when XFRM_STATE_ESN is set
* Fix the issue that AEAD algorithm is not correctly offloaded
Huanhuan Wang (2):
nfp: add framework to support ipsec offloading
nfp: implement xfrm callbacks and expose ipsec offload feature to
upper layer
Yinjun Zhang (1):
nfp: extend capability and control words
drivers/net/ethernet/netronome/Kconfig | 11 +
drivers/net/ethernet/netronome/nfp/Makefile | 2 +
.../ethernet/netronome/nfp/crypto/crypto.h | 23 +
.../net/ethernet/netronome/nfp/crypto/ipsec.c | 587 ++++++++++++++++++
drivers/net/ethernet/netronome/nfp/nfd3/dp.c | 58 +-
.../net/ethernet/netronome/nfp/nfd3/ipsec.c | 18 +
.../net/ethernet/netronome/nfp/nfd3/nfd3.h | 8 +
drivers/net/ethernet/netronome/nfp/nfp_net.h | 11 +
.../ethernet/netronome/nfp/nfp_net_common.c | 10 +
.../net/ethernet/netronome/nfp/nfp_net_ctrl.h | 22 +-
10 files changed, 735 insertions(+), 15 deletions(-)
create mode 100644 drivers/net/ethernet/netronome/nfp/crypto/ipsec.c
create mode 100644 drivers/net/ethernet/netronome/nfp/nfd3/ipsec.c
--
2.30.2
next reply other threads:[~2022-11-17 13:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 13:20 Simon Horman [this message]
2022-11-17 13:21 ` [PATCH net-next v4 1/3] nfp: extend capability and control words Simon Horman
2022-11-17 13:21 ` [PATCH net-next v4 2/3] nfp: add framework to support ipsec offloading Simon Horman
2022-11-17 13:21 ` [PATCH net-next v4 3/3] nfp: implement xfrm callbacks and expose ipsec offload feature to upper layer Simon Horman
2022-11-21 9:00 ` [PATCH net-next v4 0/3] nfp: IPsec offload support patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221117132102.678708-1-simon.horman@corigine.com \
--to=simon.horman@corigine.com \
--cc=chengtian.liu@corigine.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=huanhuan.wang@corigine.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=louis.peens@corigine.com \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@corigine.com \
--cc=pabeni@redhat.com \
--cc=steffen.klassert@secunet.com \
--cc=yinjun.zhang@corigine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).