2 .\" Licensed under the OpenIB.org (MIT) - See COPYING.md
4 .TH MLX5DV_INIT_OBJ 3 2017-02-02 1.0.0
6 mlx5dv_init_obj \- Initialize mlx5 direct verbs object from ibv_xxx structures
9 .B #include <infiniband/mlx5dv.h>
11 .BI "int mlx5dv_init_obj(struct mlx5dv_obj *obj, uint64_t obj_type);
15 This function will initialize mlx5dv_xxx structs based on supplied type. The information
16 for initialization is taken from ibv_xx structs supplied as part of input.
18 Request information of CQ marks its owned by direct verbs for all consumer index
19 related actions. The initialization type can be combination of several types together.
87 struct mlx5dv_qp *out;
93 struct mlx5dv_cq *out;
99 struct mlx5dv_srq *out;
105 struct mlx5dv_rwq *out;
111 enum mlx5dv_obj_type {
113 MLX5DV_OBJ_QP = 1 << 0,
114 MLX5DV_OBJ_CQ = 1 << 1,
115 MLX5DV_OBJ_SRQ = 1 << 2,
116 MLX5DV_OBJ_RWQ = 1 << 3,
121 0 on success or the value of errno on failure (which indicates the failure reason).
123 * The information if doorbell is blueflame is based on mlx5dv_qp->bf->size,
124 in case of 0 it's not a BF.
125 * Compatibility masks (comp_mask) are in/out fields.
130 Leon Romanovsky <leonro@mellanox.com>