summaryrefslogtreecommitdiff
path: root/net/smc/smc_netlink.c
diff options
context:
space:
mode:
authorGuvenc Gulce <guvenc@linux.ibm.com>2020-12-01 20:20:44 +0100
committerJakub Kicinski <kuba@kernel.org>2020-12-01 17:56:13 -0800
commit099b990bd11a3a96b5d59973f482018e5cbde6c3 (patch)
tree958c4deb7b5a8326ddad1363f03298cfd83b02fd /net/smc/smc_netlink.c
parente8372d9d21451a2f2947c2b63b5184f3d4d0bff9 (diff)
net/smc: Add support for obtaining system information
Add new netlink command to obtain system information of the smc module. Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/smc/smc_netlink.c')
-rw-r--r--net/smc/smc_netlink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/smc/smc_netlink.c b/net/smc/smc_netlink.c
index 4f964d03b372..ce06d269a54b 100644
--- a/net/smc/smc_netlink.c
+++ b/net/smc/smc_netlink.c
@@ -23,6 +23,11 @@
/* SMC_GENL generic netlink operation definition */
static const struct genl_ops smc_gen_nl_ops[] = {
+ {
+ .cmd = SMC_NETLINK_GET_SYS_INFO,
+ /* can be retrieved by unprivileged users */
+ .dumpit = smc_nl_get_sys_info,
+ },
};
static const struct nla_policy smc_gen_nl_policy[2] = {