History

IB/mlx5: Handle type IB_QPT_DRIVER when creating a QP

The QP type IB_QPT_DRIVER doesn't describe the transport or the service that the QP provides but those are known only to the hardware driver. The actual type of the QP is stored in the hardware driver context (i.e. mlx5_qp) under the field qp_sub_type. Take the real QP type and any extra data that is required to create the QP from the driver channel and modify the QP initial attributes before continuing with create_qp(). Downstream patches from this series will add support for both DCI and DCT driver QPs.

Moni Shoua committed 8 years ago

Commit b4aaa1f1 parent 8011c1e3 files · +118 −2Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/rdma/mlx5-abi.h+6−1
@@ -42,6 +42,8 @@ enum { · 41 unmodified lines
4242 MLX5_QP_FLAG_SCATTER_CQE = 1 << 1,
4343 MLX5_QP_FLAG_TUNNEL_OFFLOADS = 1 << 2,
4444 MLX5_QP_FLAG_BFREG_INDEX = 1 << 3,
45+ MLX5_QP_FLAG_TYPE_DCT = 1 << 4,
46+ MLX5_QP_FLAG_TYPE_DCI = 1 << 5,
4547 };
4648
4749 enum {
@@ -284,7 +286,10 @@ struct mlx5_ib_create_qp { · 236 unmodified lines
284286 __u32 flags;
285287 __u32 uidx;
286288 __u32 bfreg_index;
287− __u64 sq_buf_addr;
289+ union {
290+ __u64 sq_buf_addr;
291+ __u64 access_key;
292+ };
288293 };
289294
290295 /* RX Hash function flags */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t