Skip to contentSkip to conversation

macsec: add missing attribute validation for offload

PATCH Applied [email protected] 4 participants 4 messages Dec 7, 2022 – Dec 8, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 macsec: add missing attribute validation for offload

From: Emeel Hakim <[email protected]>

Add missing attribute validation for IFLA_MACSEC_OFFLOAD to the netlink policy.

Fixes 791bb3fcafce ("net: macsec: add support for specifying offload upon link creation")
---
 drivers/net/macsec.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/macsec.c +1 -0
index f41f67b583db..2fbac51b9b19 100644
@@ -3698,6 +3698,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)
Signature · 1 line
2.21.3
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 7 lines · 2022-12-07, 12:16:18 +0200, [email protected] wrote:

From: Emeel Hakim <[email protected]>

Add missing attribute validation for IFLA_MACSEC_OFFLOAD to the netlink policy.

Fixes 791bb3fcafce ("net: macsec: add support for specifying offload upon link creation")
Signature · 1 line
Sabrina
#3 lore raw
In reply to [email protected]
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Wed, 7 Dec 2022 12:16:18 +0200 you wrote:

From: Emeel Hakim <[email protected]>

Add missing attribute validation for IFLA_MACSEC_OFFLOAD to the netlink policy.

Fixes 791bb3fcafce ("net: macsec: add support for specifying offload upon link creation")

[...]

Here is the summary with links:
- [net] macsec: add missing attribute validation for offload

    https://git.kernel.org/netdev/net/c/38099024e51e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html