mirror_ubuntu-kernels/drivers/net/ethernet/marvell/octeontx2/nic
Subbaraya Sundeep e7002b3b20 octeontx2-pf: mcs: Generate hash key using ecb(aes)
Hardware generated encryption and ICV tags are found to
be wrong when tested with IEEE MACSEC test vectors.
This is because as per the HRM, the hash key (derived by
AES-ECB block encryption of an all 0s block with the SAK)
has to be programmed by the software in
MCSX_RS_MCS_CPM_TX_SLAVE_SA_PLCY_MEM_4X register.
Hence fix this by generating hash key in software and
configuring in hardware.

Fixes: c54ffc7360 ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://lore.kernel.org/r/1689574603-28093-1-git-send-email-sbhatta@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-18 19:21:56 -07:00
..
cn10k_macsec.c octeontx2-pf: mcs: Generate hash key using ecb(aes) 2023-07-18 19:21:56 -07:00
cn10k.c octeontx2-pf: Add egress PFC support 2022-09-01 09:37:47 +02:00
cn10k.h octeontx2-pf: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
Makefile octeontx2-pf: Add support for HTB offload 2023-05-15 09:31:07 +01:00
otx2_common.c octeontx2-af: cn10k: Set NIX DWRR MTU for CN10KB silicon 2023-06-13 09:54:57 +01:00
otx2_common.h octeontx2-af: cn10k: Set NIX DWRR MTU for CN10KB silicon 2023-06-13 09:54:57 +01:00
otx2_dcbnl.c octeontx2-pf: Add egress PFC support 2022-09-01 09:37:47 +02:00
otx2_devlink.c net: devlink: clean-up empty devlink_ops::info_get() 2022-11-30 21:49:39 -08:00
otx2_devlink.h octeontx2-pf: devlink params support to set mcam entry count 2021-08-17 10:06:33 +01:00
otx2_dmac_flt.c octeontx2-af: Fixes static warnings 2022-07-15 12:01:43 +01:00
otx2_ethtool.c octeontx2-pf: ethtool expose qos stats 2023-05-15 09:31:07 +01:00
otx2_flows.c octeontx2-pf: Add additional check for MCAM rules 2023-07-11 12:56:57 +02:00
otx2_pf.c octeontx2-pf: Dont allocate BPIDs for LBK interfaces 2023-07-18 14:51:45 +02:00
otx2_ptp.c octeontx2-af: Add PTP PPS Errata workaround on CN10K silicon 2022-09-17 20:13:41 +01:00
otx2_ptp.h octeontx2-pf: cn10k: add support for new ptp timestamp format 2022-02-21 13:07:48 +00:00
otx2_reg.h octeontx2-pf: Prepare for QOS offload 2023-05-15 09:31:07 +01:00
otx2_struct.h octeontx2-pf: NIX TX overwrites SQ_CTX_HW_S[SQ_INT] 2022-11-04 10:55:05 +00:00
otx2_tc.c octeontx2-pf: Add additional check for MCAM rules 2023-07-11 12:56:57 +02:00
otx2_txrx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-05-25 19:57:39 -07:00
otx2_txrx.h octeontx2-pf: Add support for page pool 2023-05-23 10:47:50 +02:00
otx2_vf.c Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
qos_sq.c octeontx2-pf: Add support for page pool 2023-05-23 10:47:50 +02:00
qos.c octeontx2-pf: Add support for HTB offload 2023-05-15 09:31:07 +01:00
qos.h octeontx2-pf: Add support for HTB offload 2023-05-15 09:31:07 +01:00