aboutsummaryrefslogtreecommitdiff
path: root/include/net/smc.h
diff options
context:
space:
mode:
authorUrsula Braun2017-01-09 16:55:26 +0100
committerDavid S. Miller2017-01-09 16:07:41 -0500
commitf16a7dd5cf27eeda187425c9c7d96802a549f9c4 (patch)
tree0f7b7f3986f6d5d17fdda7af266d09a8f7882e03 /include/net/smc.h
parentb38d732477e4211351b2680e805d944f66bceec9 (diff)
smc: netlink interface for SMC sockets
Support for SMC socket monitoring via netlink sockets of protocol NETLINK_SOCK_DIAG. Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/smc.h')
-rw-r--r--include/net/smc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/net/smc.h b/include/net/smc.h
new file mode 100644
index 000000000000..12d26358ad9f
--- /dev/null
+++ b/include/net/smc.h
@@ -0,0 +1,20 @@
+/*
+ * Shared Memory Communications over RDMA (SMC-R) and RoCE
+ *
+ * Definitions for the SMC module (socket related)
+ *
+ * Copyright IBM Corp. 2016
+ *
+ * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
+ */
+#ifndef _SMC_H
+#define _SMC_H
+
+struct smc_hashinfo {
+ rwlock_t lock;
+ struct hlist_head ht;
+};
+
+int smc_hash_sk(struct sock *sk);
+void smc_unhash_sk(struct sock *sk);
+#endif /* _SMC_H */