diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-08-03 04:40:37 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-09-30 23:33:28 -0400 |
commit | d2b57063e4aba51d3c49ec957607d2e4c9d5f29a (patch) | |
tree | d50812125a5ebfe434a02883be23ce339ff35786 /include | |
parent | 979570e02981d4a8fc20b3cc8fd651856c98ee9d (diff) |
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 <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/rdma/ib_verbs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 07996af8265a..46bc045bbe15 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -614,6 +614,9 @@ enum ib_qp_type { | |||
614 | enum ib_qp_create_flags { | 614 | enum ib_qp_create_flags { |
615 | IB_QP_CREATE_IPOIB_UD_LSO = 1 << 0, | 615 | IB_QP_CREATE_IPOIB_UD_LSO = 1 << 0, |
616 | IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 1 << 1, | 616 | 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, | ||
617 | }; | 620 | }; |
618 | 621 | ||
619 | struct ib_qp_init_attr { | 622 | struct ib_qp_init_attr { |