diff options
author | Guvenc Gulce <guvenc@linux.ibm.com> | 2020-12-01 22:20:49 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-02 04:56:13 +0300 |
commit | a3db10efcc4cc9c03a6375920179ade75ea2df7a (patch) | |
tree | 8f5d488c5899534bf8f8fde129522ec76cfdb8b1 /net/smc/smc_netlink.c | |
parent | aaf95523d5824ebc2c8c185a2de51063a750c446 (diff) | |
download | linux-a3db10efcc4cc9c03a6375920179ade75ea2df7a.tar.xz |
net/smc: Add support for obtaining SMCR device list
Deliver SMCR device information via netlink based
diagnostic interface.
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/smc/smc_netlink.c b/net/smc/smc_netlink.c index debdeec53728..140419a19dbf 100644 --- a/net/smc/smc_netlink.c +++ b/net/smc/smc_netlink.c @@ -18,6 +18,7 @@ #include "smc_core.h" #include "smc_ism.h" +#include "smc_ib.h" #include "smc_netlink.h" #define SMC_CMD_MAX_ATTR 1 @@ -49,6 +50,11 @@ static const struct genl_ops smc_gen_nl_ops[] = { /* can be retrieved by unprivileged users */ .dumpit = smcd_nl_get_device, }, + { + .cmd = SMC_NETLINK_GET_DEV_SMCR, + /* can be retrieved by unprivileged users */ + .dumpit = smcr_nl_get_device, + }, }; static const struct nla_policy smc_gen_nl_policy[2] = { |