nfp: add framework to support ipsec offloading
authorHuanhuan Wang <huanhuan.wang@corigine.com>
Thu, 17 Nov 2022 13:21:01 +0000 (14:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2022 08:51:36 +0000 (08:51 +0000)
commit57f273adbcd44172cbe0bd10b8b7408dd255699f
treea8b7c2facfb4f50235028cfd8cff1a2a779b3041
parent484963ce9f1eb89720055de8cad91e8c9fc7f3e6
nfp: add framework to support ipsec offloading

A new metadata type and config structure are introduced to
interact with firmware to support ipsec offloading. This
feature relies on specific firmware that supports ipsec
encrypt/decrypt by advertising related capability bit.

The xfrm callbacks which interact with upper layer are
implemented in the following patch.

Based on initial work of Norm Bagley <norman.bagley@netronome.com>.

Signed-off-by: Huanhuan Wang <huanhuan.wang@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/Kconfig
drivers/net/ethernet/netronome/nfp/Makefile
drivers/net/ethernet/netronome/nfp/crypto/crypto.h
drivers/net/ethernet/netronome/nfp/crypto/ipsec.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfd3/dp.c
drivers/net/ethernet/netronome/nfp/nfd3/ipsec.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfd3/nfd3.h
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h