public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] macsec: add missing attribute validation for offload
@ 2022-12-07 10:16 ehakim
  2022-12-07 14:04 ` Jiri Pirko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ehakim @ 2022-12-07 10:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: raeds, davem, edumazet, kuba, pabeni, netdev, sd, atenart, jiri,
	Emeel Hakim

From: Emeel Hakim <ehakim@nvidia.com>

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>
---
 drivers/net/macsec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c
index f41f67b583db..2fbac51b9b19 100644
--- a/drivers/net/macsec.c
+++ b/drivers/net/macsec.c
@@ -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)
-- 
2.21.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net] macsec: add missing attribute validation for offload
  2022-12-07 10:16 [PATCH net] macsec: add missing attribute validation for offload ehakim
@ 2022-12-07 14:04 ` Jiri Pirko
  2022-12-07 15:00 ` Sabrina Dubroca
  2022-12-08 17:20 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Jiri Pirko @ 2022-12-07 14:04 UTC (permalink / raw)
  To: ehakim
  Cc: linux-kernel, raeds, davem, edumazet, kuba, pabeni, netdev, sd,
	atenart

Wed, Dec 07, 2022 at 11:16:18AM CET, ehakim@nvidia.com wrote:
>From: Emeel Hakim <ehakim@nvidia.com>
>
>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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net] macsec: add missing attribute validation for offload
  2022-12-07 10:16 [PATCH net] macsec: add missing attribute validation for offload ehakim
  2022-12-07 14:04 ` Jiri Pirko
@ 2022-12-07 15:00 ` Sabrina Dubroca
  2022-12-08 17:20 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Sabrina Dubroca @ 2022-12-07 15:00 UTC (permalink / raw)
  To: ehakim
  Cc: linux-kernel, raeds, davem, edumazet, kuba, pabeni, netdev,
	atenart, jiri

2022-12-07, 12:16:18 +0200, ehakim@nvidia.com wrote:
> From: Emeel Hakim <ehakim@nvidia.com>
> 
> 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: Sabrina Dubroca <sd@queasysnail.net>

-- 
Sabrina


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net] macsec: add missing attribute validation for offload
  2022-12-07 10:16 [PATCH net] macsec: add missing attribute validation for offload ehakim
  2022-12-07 14:04 ` Jiri Pirko
  2022-12-07 15:00 ` Sabrina Dubroca
@ 2022-12-08 17:20 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-12-08 17:20 UTC (permalink / raw)
  To: Emeel Hakim
  Cc: linux-kernel, raeds, davem, edumazet, kuba, pabeni, netdev, sd,
	atenart, jiri

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 7 Dec 2022 12:16:18 +0200 you wrote:
> From: Emeel Hakim <ehakim@nvidia.com>
> 
> 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>
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-08 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-07 10:16 [PATCH net] macsec: add missing attribute validation for offload ehakim
2022-12-07 14:04 ` Jiri Pirko
2022-12-07 15:00 ` Sabrina Dubroca
2022-12-08 17:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox