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:
Sanath Kumar Gampa
2024-04-26 16:55:19 +05:30
committed by Bhadram Varka
parent 6bc9570126
commit 96d89392f0
2 changed files with 2 additions and 0 deletions

View File

@@ -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 },