diff mbox series

[net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID

Message ID AM6PR03MB58482322B7B335308DA56FE599272@AM6PR03MB5848.eurprd03.prod.outlook.com (mailing list archive)
State Accepted
Commit 8b6d307f4391c20cfd76bbb15f8b3784d36e0755
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 945 this patch: 945
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers warning 1 maintainers not CCed: brauner@kernel.org
netdev/build_clang success Errors and warnings before: 957 this patch: 957
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 961 this patch: 961
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 9 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-03-10--00-00 (tests: 888)

Commit Message

Juntong Deng March 8, 2024, 11:33 a.m. UTC
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(+)

Comments

patchwork-bot+netdevbpf@kernel.org March 11, 2024, 11 p.m. UTC | #1
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!
diff mbox series

Patch

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;