summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_netlink.h
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.h
parente8372d9d21451a2f2947c2b63b5184f3d4d0bff9 (diff)
downloadlinux-stable-099b990bd11a3a96b5d59973f482018e5cbde6c3.tar.gz
linux-stable-099b990bd11a3a96b5d59973f482018e5cbde6c3.tar.bz2
linux-stable-099b990bd11a3a96b5d59973f482018e5cbde6c3.zip
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.h')
-rw-r--r--net/smc/smc_netlink.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/smc/smc_netlink.h b/net/smc/smc_netlink.h
index 0c757232c0d0..3477265cba6c 100644
--- a/net/smc/smc_netlink.h
+++ b/net/smc/smc_netlink.h
@@ -17,6 +17,15 @@
extern struct genl_family smc_gen_nl_family;
+struct smc_nl_dmp_ctx {
+ int pos[2];
+};
+
+static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
+{
+ return (struct smc_nl_dmp_ctx *)c->ctx;
+}
+
int smc_nl_init(void) __init;
void smc_nl_exit(void);