aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMajd Dibbiny <majd@mellanox.com>2016-03-15 20:14:14 +0200
committerYishai Hadas <yishaih@mellanox.com>2016-05-19 11:43:33 +0300
commit5852b93d3bcde67f70ae577f219cfad005f7e1cc (patch)
tree79a8001d110f26d4259a9f7aa40b0f2506c05962
parent86d774420968c546b17c75f560bfd00a1158a6ba (diff)
downloadlibibverbs-5852b93d3bcde67f70ae577f219cfad005f7e1cc.tar.gz
Add SCATTER_FCS QP create flag
Raw Packet QPs that were created with Scatter FCS will scatter the FCS into the receive buffers. Signed-off-by: Majd Dibbiny <majd@mellanox.com> Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
-rw-r--r--include/infiniband/verbs.h1
-rw-r--r--src/cmd.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h
index f45667f..a9cae4d 100644
--- a/include/infiniband/verbs.h
+++ b/include/infiniband/verbs.h
@@ -613,6 +613,7 @@ enum ibv_qp_init_attr_mask {
enum ibv_qp_create_flags {
IBV_QP_CREATE_BLOCK_SELF_MCAST_LB = 1 << 1,
+ IBV_QP_CREATE_SCATTER_FCS = 1 << 8,
};
struct ibv_qp_init_attr_ex {
diff --git a/src/cmd.c b/src/cmd.c
index b9c5c67..1e2d5e4 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -828,7 +828,8 @@ static void create_qp_handle_resp_common(struct ibv_context *context,
}
enum {
- CREATE_QP_EX2_SUP_CREATE_FLAGS = IBV_QP_CREATE_BLOCK_SELF_MCAST_LB,
+ CREATE_QP_EX2_SUP_CREATE_FLAGS = IBV_QP_CREATE_BLOCK_SELF_MCAST_LB |
+ IBV_QP_CREATE_SCATTER_FCS,
};
int ibv_cmd_create_qp_ex2(struct ibv_context *context,