Skip to content

Commit 3809902

Browse files
Emeel Hakimkuba-moo
Emeel Hakim
authored andcommitted
macsec: add missing attribute validation for offload
Add missing attribute validation for IFLA_MACSEC_OFFLOAD to the netlink policy. Fixes: 791bb3f ("net: macsec: add support for specifying offload upon link creation") Signed-off-by: Emeel Hakim <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Sabrina Dubroca <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent cdd9738 commit 3809902

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/macsec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,6 +3698,7 @@ static const struct nla_policy macsec_rtnl_policy[IFLA_MACSEC_MAX + 1] = {
36983698
[IFLA_MACSEC_SCB] = { .type = NLA_U8 },
36993699
[IFLA_MACSEC_REPLAY_PROTECT] = { .type = NLA_U8 },
37003700
[IFLA_MACSEC_VALIDATION] = { .type = NLA_U8 },
3701+
[IFLA_MACSEC_OFFLOAD] = { .type = NLA_U8 },
37013702
};
37023703

37033704
static void macsec_free_netdev(struct net_device *dev)

0 commit comments

Comments
 (0)