diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2008-04-17 00:09:27 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:09:27 -0400 |
commit | b846f25aa2a353355aec5202fe4dbdc6674dfc64 (patch) | |
tree | 2daf137a2974c1ced5363020e88057c802cea5a5 /include/rdma/ib_verbs.h | |
parent | d84e0b28d3a0b41fc574ea50d60522ae0fba75f4 (diff) |
IB/core: Add creation flags to struct ib_qp_init_attr
Add a create_flags member to struct ib_qp_init_attr that will allow a
kernel verbs consumer to create a pass special flags when creating a QP.
Add a flag value for telling low-level drivers that a QP will be used
for IPoIB UD LSO. The create_flags member will also be useful for XRC
and ehca low-latency QP support.
Since no create_flags handling is implemented yet, add code to all
low-level drivers to return -EINVAL if create_flags is non-zero.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r-- | include/rdma/ib_verbs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 40ff51244d19..c3299be41c6f 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -495,6 +495,10 @@ enum ib_qp_type { | |||
495 | IB_QPT_RAW_ETY | 495 | IB_QPT_RAW_ETY |
496 | }; | 496 | }; |
497 | 497 | ||
498 | enum ib_qp_create_flags { | ||
499 | IB_QP_CREATE_IPOIB_UD_LSO = 1 << 0, | ||
500 | }; | ||
501 | |||
498 | struct ib_qp_init_attr { | 502 | struct ib_qp_init_attr { |
499 | void (*event_handler)(struct ib_event *, void *); | 503 | void (*event_handler)(struct ib_event *, void *); |
500 | void *qp_context; | 504 | void *qp_context; |
@@ -504,6 +508,7 @@ struct ib_qp_init_attr { | |||
504 | struct ib_qp_cap cap; | 508 | struct ib_qp_cap cap; |
505 | enum ib_sig_type sq_sig_type; | 509 | enum ib_sig_type sq_sig_type; |
506 | enum ib_qp_type qp_type; | 510 | enum ib_qp_type qp_type; |
511 | enum ib_qp_create_flags create_flags; | ||
507 | u8 port_num; /* special QP types only */ | 512 | u8 port_num; /* special QP types only */ |
508 | }; | 513 | }; |
509 | 514 | ||