mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
NvEthernet: macsec: Fix the nla policy issue
Issue: IOCTLs from supplicanta pplication are not reaching Nvidia Ethernet driver in kernel 6.1 Fix: Filled the correct policy while registering with netlink. Added Cipher Suite attribute to genl macsec policy Ported from - https://git-master.nvidia.com/r/c/nvethernet-docs/+/3126784 Bug 4316709 Change-Id: I7d0b86d14b1d5bb9aff34b79d635bfccd7443ebf
This commit is contained in:
committed by
Bhadram Varka
parent
6bc9570126
commit
96d89392f0
@@ -1429,6 +1429,7 @@ int macsec_probe(struct ether_priv_data *pdata)
|
||||
macsec_pdata->nv_macsec_fam.module = THIS_MODULE;
|
||||
macsec_pdata->nv_macsec_fam.ops = nv_macsec_genl_ops;
|
||||
macsec_pdata->nv_macsec_fam.n_ops = ARRAY_SIZE(nv_macsec_genl_ops);
|
||||
macsec_pdata->nv_macsec_fam.policy = nv_macsec_genl_policy;
|
||||
if (macsec_pdata->is_nv_macsec_fam_registered == OSI_DISABLE) {
|
||||
if (strlen(netdev_name(pdata->ndev)) >= GENL_NAMSIZ) {
|
||||
dev_err(dev, "Intf name %s of len %lu exceed nl_family name size\n",
|
||||
|
||||
@@ -163,6 +163,7 @@ static const struct nla_policy nv_macsec_genl_policy[NUM_NV_MACSEC_ATTR] = {
|
||||
[NV_MACSEC_ATTR_TXSC_PORT] = { .type = NLA_U16 },
|
||||
[NV_MACSEC_ATTR_REPLAY_PROT_EN] = { .type = NLA_U32 },
|
||||
[NV_MACSEC_ATTR_REPLAY_WINDOW] = { .type = NLA_U32 },
|
||||
[NV_MACSEC_ATTR_CIPHER_SUITE] = { .type = NLA_U32 },
|
||||
[NV_MACSEC_ATTR_SA_CONFIG] = { .type = NLA_NESTED },
|
||||
[NV_MACSEC_ATTR_TZ_CONFIG] = { .type = NLA_NESTED },
|
||||
[NV_MACSEC_ATTR_TZ_KT_RESET] = { .type = NLA_NESTED },
|
||||
|
||||
Reference in New Issue
Block a user