diff options
author | Ursula Braun <ubraun@linux.vnet.ibm.com> | 2017-01-09 10:55:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-09 16:07:39 -0500 |
commit | f38ba179c6ca94ebeb0ac6a0956c4ea533151ad8 (patch) | |
tree | a061b0fe37bfc4070e7b97aa3600c72fc8bccf2b /net/smc/smc.h | |
parent | cd6851f30386e5e04b5c2253f8e1647ba0ebcd31 (diff) |
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.h | 5 |
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 @@ | |||
12 | 12 | ||
13 | #include <linux/socket.h> | 13 | #include <linux/socket.h> |
14 | #include <linux/types.h> | 14 | #include <linux/types.h> |
15 | #include <linux/compiler.h> /* __aligned */ | ||
15 | #include <net/sock.h> | 16 | #include <net/sock.h> |
16 | 17 | ||
17 | #include "smc_ib.h" | 18 | #include "smc_ib.h" |
@@ -29,6 +30,10 @@ enum smc_state { /* possible states of an SMC socket */ | |||
29 | 30 | ||
30 | struct smc_link_group; | 31 | struct smc_link_group; |
31 | 32 | ||
33 | struct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */ | ||
34 | u8 type; | ||
35 | } __aligned(1); | ||
36 | |||
32 | struct smc_connection { | 37 | struct smc_connection { |
33 | struct rb_node alert_node; | 38 | struct rb_node alert_node; |
34 | struct smc_link_group *lgr; /* link group of connection */ | 39 | struct smc_link_group *lgr; /* link group of connection */ |