summaryrefslogtreecommitdiffstats
path: root/net/smc/smc.h
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.vnet.ibm.com>2017-01-09 16:55:19 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-09 16:07:39 -0500
commitf38ba179c6ca94ebeb0ac6a0956c4ea533151ad8 (patch)
treea061b0fe37bfc4070e7b97aa3600c72fc8bccf2b /net/smc/smc.h
parentcd6851f30386e5e04b5c2253f8e1647ba0ebcd31 (diff)
downloadlinux-f38ba179c6ca94ebeb0ac6a0956c4ea533151ad8.tar.gz
linux-f38ba179c6ca94ebeb0ac6a0956c4ea533151ad8.tar.bz2
linux-f38ba179c6ca94ebeb0ac6a0956c4ea533151ad8.zip
smc: work request (WR) base for use by LLC and CDC
The base containers for RDMA transport are work requests and completion queue entries processed through Infiniband verbs: * allocate and initialize these areas * map these areas to DMA * implement the basic communication consisting of work request posting and receival of completion queue events Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc.h')
-rw-r--r--net/smc/smc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h
index 2bf504492133..209a0b5f59cb 100644
--- a/net/smc/smc.h
+++ b/net/smc/smc.h
@@ -12,6 +12,7 @@
#include <linux/socket.h>
#include <linux/types.h>
+#include <linux/compiler.h> /* __aligned */
#include <net/sock.h>
#include "smc_ib.h"
@@ -29,6 +30,10 @@ enum smc_state { /* possible states of an SMC socket */
struct smc_link_group;
+struct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */
+ u8 type;
+} __aligned(1);
+
struct smc_connection {
struct rb_node alert_node;
struct smc_link_group *lgr; /* link group of connection */