summaryrefslogtreecommitdiff
path: root/net/smc/smc_netlink.c
diff options
context:
space:
mode:
authorGuvenc Gulce <guvenc@linux.ibm.com>2020-12-01 22:20:46 +0300
committerJakub Kicinski <kuba@kernel.org>2020-12-02 04:56:13 +0300
commit5a7e09d58f3fe2f0d5e8f0da4b1f686491245eb5 (patch)
tree53ce21665b56aa30d7b31855955afe249d09f2b7 /net/smc/smc_netlink.c
parente9b8c845cb342a3ab3d92235a54d0d1ad06d7204 (diff)
downloadlinux-5a7e09d58f3fe2f0d5e8f0da4b1f686491245eb5.tar.xz
net/smc: Introduce SMCR get link command
Introduce get link command which loops through all available links of all available link groups. It uses the SMC-R linkgroup list as entry point, not the socket list, which makes linkgroup diagnosis possible, in case linkgroup does not contain active connections anymore. 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 490da56c8d3c..a41f78f488a2 100644
--- a/net/smc/smc_netlink.c
+++ b/net/smc/smc_netlink.c
@@ -33,6 +33,11 @@ static const struct genl_ops smc_gen_nl_ops[] = {
/* can be retrieved by unprivileged users */
.dumpit = smcr_nl_get_lgr,
},
+ {
+ .cmd = SMC_NETLINK_GET_LINK_SMCR,
+ /* can be retrieved by unprivileged users */
+ .dumpit = smcr_nl_get_link,
+ },
};
static const struct nla_policy smc_gen_nl_policy[2] = {