mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvethernet: MACSEC send InstanceID to supplicant
Issue: If MGBE0 is not up and if we try to run supplicant on MGBE1/2/3 then we would see a crash as we were accessing the TZ space allocated to MGBE0 which is not up yet Fix: Sending the Instance ID to supplicant so that supplicant will access the TZ space corresponding to the MGBE interface which is up Bug 200765688 Change-Id: I42893d6142f7b8495a06e31d88a920353114e141 Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2593897 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@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
06eca7dba3
commit
ee3b01231e
@@ -1399,6 +1399,16 @@ static int macsec_tz_kt_config(struct ether_priv_data *pdata,
|
||||
ret = -EINVAL;
|
||||
goto failure;
|
||||
}
|
||||
if (cmd == NV_MACSEC_CMD_TZ_KT_RESET) {
|
||||
nest = nla_nest_start(msg, NV_MACSEC_ATTR_TZ_KT_RESET);
|
||||
if (!nest) {
|
||||
ret = EINVAL;
|
||||
goto failure;
|
||||
}
|
||||
nla_put_u32(msg, NV_MACSEC_TZ_KT_RESET_INSTANCE_ID,
|
||||
macsec_pdata->id);
|
||||
nla_nest_end(msg, nest);
|
||||
}
|
||||
|
||||
if (cmd == NV_MACSEC_CMD_TZ_CONFIG && kt_config != NULL) {
|
||||
/* pr_err("%s: ctrl: %hu rw: %hu idx: %hu flags: %#x\n"
|
||||
|
||||
Reference in New Issue
Block a user