Added MACsec support in Marvell cnxk PMD. The patchset is pending from last release [1] Sending as a new series as the functionality is now complete and tested on hardware.
Depends-on: http://patches.dpdk.org/project/dpdk/list/?series=28391 [1] https://patches.dpdk.org/project/dpdk/cover/20220928124516.93050-1-gak...@marvell.com/ Changes in v2: - Addressed review comments from Jerin. Akhil Goyal (15): common/cnxk: add ROC MACsec initialization common/cnxk: add MACsec SA configuration common/cnxk: add MACsec SC configuration APIs common/cnxk: add MACsec secy and flow configuration common/cnxk: add MACsec PN and LMAC mode configuration common/cnxk: add MACsec stats common/cnxk: add MACsec interrupt APIs common/cnxk: add MACsec port configuration common/cnxk: add MACsec control port configuration common/cnxk: add MACsec FIPS mbox common/cnxk: derive hash key for MACsec net/cnxk: add MACsec initialization net/cnxk: create/destroy MACsec SC/SA net/cnxk: add MACsec session and flow configuration net/cnxk: add MACsec stats drivers/common/cnxk/meson.build | 3 + drivers/common/cnxk/roc_aes.c | 86 ++- drivers/common/cnxk/roc_aes.h | 4 +- drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_dev.c | 86 +++ drivers/common/cnxk/roc_features.h | 12 + drivers/common/cnxk/roc_idev.c | 46 ++ drivers/common/cnxk/roc_idev.h | 3 + drivers/common/cnxk/roc_idev_priv.h | 1 + drivers/common/cnxk/roc_mbox.h | 524 +++++++++++++++- drivers/common/cnxk/roc_mcs.c | 871 ++++++++++++++++++++++++++ drivers/common/cnxk/roc_mcs.h | 621 ++++++++++++++++++ drivers/common/cnxk/roc_mcs_priv.h | 73 +++ drivers/common/cnxk/roc_mcs_sec_cfg.c | 528 ++++++++++++++++ drivers/common/cnxk/roc_mcs_stats.c | 193 ++++++ drivers/common/cnxk/roc_priv.h | 3 + drivers/common/cnxk/roc_utils.c | 5 + drivers/common/cnxk/version.map | 45 ++ drivers/net/cnxk/cn10k_ethdev_sec.c | 25 +- drivers/net/cnxk/cn10k_flow.c | 23 +- drivers/net/cnxk/cnxk_ethdev.c | 15 + drivers/net/cnxk/cnxk_ethdev.h | 30 + drivers/net/cnxk/cnxk_ethdev_mcs.c | 726 +++++++++++++++++++++ drivers/net/cnxk/cnxk_ethdev_mcs.h | 111 ++++ drivers/net/cnxk/cnxk_ethdev_sec.c | 2 +- drivers/net/cnxk/cnxk_flow.c | 5 + drivers/net/cnxk/meson.build | 1 + 27 files changed, 4007 insertions(+), 38 deletions(-) create mode 100644 drivers/common/cnxk/roc_mcs.c create mode 100644 drivers/common/cnxk/roc_mcs.h create mode 100644 drivers/common/cnxk/roc_mcs_priv.h create mode 100644 drivers/common/cnxk/roc_mcs_sec_cfg.c create mode 100644 drivers/common/cnxk/roc_mcs_stats.c create mode 100644 drivers/net/cnxk/cnxk_ethdev_mcs.c create mode 100644 drivers/net/cnxk/cnxk_ethdev_mcs.h -- 2.25.1