diff options
| author | Matan Barak <matanb@mellanox.com> | 2016-01-28 10:51:46 -0500 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2016-02-02 16:42:21 -0500 |
| commit | d4584ddfc97518a575ed538307e81e73456b8175 (patch) | |
| tree | a80cf86102652ef7508505ffc373c5b65f97c080 /drivers/infiniband/hw/mlx5/main.c | |
| parent | 36f90b0a2ddd60823fe193a85e60ff1906c2a9b3 (diff) | |
IB/mlx5: Add CREATE_CQ and CREATE_QP to uverbs_ex_cmd_mask
The mlx5_ib driver supports the extended create_cq and create_qp user
verbs. In the current mechanism, a vendor supporting an extended uverb
should set the appropriate bit in the uverbs_ex_cmd_mask field.
Adding the actual support by setting the required bits in order to
support features like completion time-stamping and cross-channel.
Fixes: 972ecb821379 ('IB/mlx5: Add create_cq extended command')
Fixes: ddf9529be19c ('IB/core: Allow setting create flags in QP init
attribute')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index ec737e2287fe..6f67412c1296 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c | |||
| @@ -2214,7 +2214,9 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev) | |||
| 2214 | (1ull << IB_USER_VERBS_CMD_CREATE_XSRQ) | | 2214 | (1ull << IB_USER_VERBS_CMD_CREATE_XSRQ) | |
| 2215 | (1ull << IB_USER_VERBS_CMD_OPEN_QP); | 2215 | (1ull << IB_USER_VERBS_CMD_OPEN_QP); |
| 2216 | dev->ib_dev.uverbs_ex_cmd_mask = | 2216 | dev->ib_dev.uverbs_ex_cmd_mask = |
| 2217 | (1ull << IB_USER_VERBS_EX_CMD_QUERY_DEVICE); | 2217 | (1ull << IB_USER_VERBS_EX_CMD_QUERY_DEVICE) | |
| 2218 | (1ull << IB_USER_VERBS_EX_CMD_CREATE_CQ) | | ||
| 2219 | (1ull << IB_USER_VERBS_EX_CMD_CREATE_QP); | ||
| 2218 | 2220 | ||
| 2219 | dev->ib_dev.query_device = mlx5_ib_query_device; | 2221 | dev->ib_dev.query_device = mlx5_ib_query_device; |
| 2220 | dev->ib_dev.query_port = mlx5_ib_query_port; | 2222 | dev->ib_dev.query_port = mlx5_ib_query_port; |
