linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID
@ 2024-03-08 11:33 Juntong Deng
  2024-03-11 23:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Juntong Deng @ 2024-03-08 11:33 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, horms, Liam.Howlett; +Cc: netdev, linux-kernel

Currently getsockopt does not support NETLINK_LISTEN_ALL_NSID,
and we are unable to get the value of NETLINK_LISTEN_ALL_NSID
socket option through getsockopt.

This patch adds getsockopt support for NETLINK_LISTEN_ALL_NSID.

Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
---
 net/netlink/af_netlink.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index da846212fb9b..7554803218a2 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1773,6 +1773,9 @@ static int netlink_getsockopt(struct socket *sock, int level, int optname,
 		netlink_unlock_table();
 		return err;
 	}
+	case NETLINK_LISTEN_ALL_NSID:
+		flag = NETLINK_F_LISTEN_ALL_NSID;
+		break;
 	case NETLINK_CAP_ACK:
 		flag = NETLINK_F_CAP_ACK;
 		break;
-- 
2.39.2


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

* Re: [PATCH net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID
  2024-03-08 11:33 [PATCH net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID Juntong Deng
@ 2024-03-11 23:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-11 23:00 UTC (permalink / raw)
  To: Juntong Deng
  Cc: davem, edumazet, kuba, pabeni, horms, Liam.Howlett, netdev, linux-kernel

Hello:

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

On Fri,  8 Mar 2024 11:33:04 +0000 you wrote:
> Currently getsockopt does not support NETLINK_LISTEN_ALL_NSID,
> and we are unable to get the value of NETLINK_LISTEN_ALL_NSID
> socket option through getsockopt.
> 
> This patch adds getsockopt support for NETLINK_LISTEN_ALL_NSID.
> 
> Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
> 
> [...]

Here is the summary with links:
  - [net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID
    https://git.kernel.org/netdev/net-next/c/8b6d307f4391

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] 2+ messages in thread

end of thread, other threads:[~2024-03-11 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-08 11:33 [PATCH net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID Juntong Deng
2024-03-11 23:00 ` 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;
as well as URLs for NNTP newsgroup(s).