Skip to content

Commit d2b5706

Browse files
Jack Morgensteinrolandd
authored andcommitted
IB/core: Reserve bits in enum ib_qp_create_flags for low-level driver use
Reserve bits 26-31 for internal use by low-level drivers. Two such bits are used in the mlx4_b driver SR-IOV implementation. These enum additions guarantee that the core layer will never use these bits, so that low level drivers may safely make use of them. Signed-off-by: Jack Morgenstein <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent 979570e commit d2b5706

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/rdma/ib_verbs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ enum ib_qp_type {
614614
enum ib_qp_create_flags {
615615
IB_QP_CREATE_IPOIB_UD_LSO = 1 << 0,
616616
IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 1 << 1,
617+
/* reserve bits 26-31 for low level drivers' internal use */
618+
IB_QP_CREATE_RESERVED_START = 1 << 26,
619+
IB_QP_CREATE_RESERVED_END = 1 << 31,
617620
};
618621

619622
struct ib_qp_init_attr {

0 commit comments

Comments
 (0)