mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
nvethernet: Changes to enable AN after key program
Issue: In longer stress tests we see unint_key_slot errors if the key programing is done after AN is enabled. Fix: Fix is to program the key and then enable AN. Bug 3422356 Change-Id: I05ec54e5a47f642b5663edffd1b24e1e2ac50777 Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2626061 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Mahesh Patil <maheshp@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
644d8c5f24
commit
538c60bba4
@@ -52,6 +52,12 @@
|
||||
#define MACSEC_SIZE 0x10000U
|
||||
#endif
|
||||
|
||||
#define KEY2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5],\
|
||||
(a)[6], (a)[7], (a)[8], (a)[9], (a)[10], (a)[11],\
|
||||
(a)[12], (a)[13], (a)[14], (a)[15]
|
||||
#define KEYSTR "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x \
|
||||
%02x %02x %02x %02x %02x %02x"
|
||||
|
||||
/* keep the same enum definition in nv macsec supplicant driver */
|
||||
enum nv_macsec_sa_attrs {
|
||||
NV_MACSEC_SA_ATTR_UNSPEC,
|
||||
@@ -144,8 +150,10 @@ enum nv_macsec_nl_commands {
|
||||
NV_MACSEC_CMD_SET_REPLAY_PROT,
|
||||
NV_MACSEC_CMD_SET_CIPHER,
|
||||
NV_MACSEC_CMD_SET_CONTROLLED_PORT,
|
||||
NV_MACSEC_CMD_CREATE_TX_SA,
|
||||
NV_MACSEC_CMD_EN_TX_SA,
|
||||
NV_MACSEC_CMD_DIS_TX_SA,
|
||||
NV_MACSEC_CMD_CREATE_RX_SA,
|
||||
NV_MACSEC_CMD_EN_RX_SA,
|
||||
NV_MACSEC_CMD_DIS_RX_SA,
|
||||
NV_MACSEC_CMD_TZ_CONFIG,
|
||||
|
||||
Reference in New Issue
Block a user