summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEmeel Hakim <ehakim@nvidia.com>2022-12-07 13:16:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-14 13:37:30 +0300
commita6dba316c93e18dc407b635f4c228a99d1daa9c0 (patch)
tree2854414659d8e8ca7c89c0f6304504ddff774297 /drivers
parent40500f1f47450fa68852ea7dde93284f81568487 (diff)
downloadlinux-a6dba316c93e18dc407b635f4c228a99d1daa9c0.tar.xz
macsec: add missing attribute validation for offload
[ Upstream commit 38099024e51ee37dee5f0f577ca37175c932e3f7 ] Add missing attribute validation for IFLA_MACSEC_OFFLOAD to the netlink policy. Fixes: 791bb3fcafce ("net: macsec: add support for specifying offload upon link creation") Signed-off-by: Emeel Hakim <ehakim@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Link: https://lore.kernel.org/r/20221207101618.989-1-ehakim@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/macsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c
index aa9d0dfeda5a..88e44eb39285 100644
--- a/drivers/net/macsec.c
+++ b/drivers/net/macsec.c
@@ -3675,6 +3675,7 @@ static const struct nla_policy macsec_rtnl_policy[IFLA_MACSEC_MAX + 1] = {
[IFLA_MACSEC_SCB] = { .type = NLA_U8 },
[IFLA_MACSEC_REPLAY_PROTECT] = { .type = NLA_U8 },
[IFLA_MACSEC_VALIDATION] = { .type = NLA_U8 },
+ [IFLA_MACSEC_OFFLOAD] = { .type = NLA_U8 },
};
static void macsec_free_netdev(struct net_device *dev)