Skip to contentSkip to conversation

Add cross-channel support

PATCH Superseded Leon Romanovsky 1 participant 3 messages Dec 20, 2015 1 message not in the archive InfiniBand

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add cross-channel support

From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>

This patchset adds libmlx5 part of cross-channel support.

These patches were added on top of "Completion timestamping" [2].

[1] http://thread.gmane.org/gmane.linux.drivers.rdma/31715
[2] http://www.spinics.net/lists/linux-rdma/msg30940.html

Leon Romanovsky (2):
libmlx5: Add cross-channel primitives
libmlx5: Add CQ ignore overrun creation flag

 src/mlx5-abi.h | 14 +++++++++++++
 src/mlx5.h     |  4 ++++
 src/verbs.c    | 62 +++++++++++++++++++++++++++++++++++++++++++++-------------
 3 files changed, 66 insertions(+), 14 deletions(-)
Signature · 6 lines
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1450610590-17361-1-git-send-email-leon-2ukJVAZIZ/[email protected]

#2 lore raw

PATCH 1/2 libmlx5: Add cross-channel primitives

From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>

The cross-channel feature relies on special primitives to send and receive work requests.

* WAIT on CQ WR - This WR holds execution of subsequent requests on that queue until producer index of a CQ is met.

• SEND_EN WR - This WR specifies value of producer index on the controlled send queue. It enables the execution of all WQEs up to this producer index.

• RECEIVE_EN WR - Same as SEND_EN but related to a receive queue.

---
 src/mlx5.h | 4 ++++
 1 file changed, 4 insertions(+)
src/mlx5.h +4 -0
index 0c0b0278f66e..49e3374b4439 100644
@@ -208,6 +208,10 @@ enum {
 	MLX5_OPCODE_LOCAL_INVAL		= 0x1b,
 	MLX5_OPCODE_CONFIG_CMD		= 0x1f,
 
+	MLX5_OPCODE_SEND_ENABLE         = 0x17,
+	MLX5_OPCODE_RECV_ENABLE         = 0x16,
+	MLX5_OPCODE_CQE_WAIT            = 0x0f,
+
 	MLX5_RECV_OPCODE_RDMA_WRITE_IMM	= 0x00,
 	MLX5_RECV_OPCODE_SEND		= 0x01,
 	MLX5_RECV_OPCODE_SEND_IMM	= 0x02,
Signature · 6 lines
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 2/2 libmlx5: Add CQ ignore overrun creation flag

In reply to a message not in the archive

From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>

In order to use CQ for cross-channel operations, the user needs to configure CQ to ignore overrun creation flag.

This patch adds support of it to libmlx5 library.

---
 src/mlx5-abi.h | 14 +++++++++++++
 src/verbs.c    | 62 +++++++++++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 62 insertions(+), 14 deletions(-)
src/mlx5-abi.h +14 -0
index 769ea811d26b..85f6ee3f691e 100644
@@ -91,6 +91,20 @@ struct mlx5_create_cq_resp {
 	__u32				cqn;
 };
 
+struct mlx5_create_cq_ex {
+	struct ibv_create_cq_ex		ibv_cmd;
+	__u64				buf_addr;
+	__u64				db_addr;
+	__u32				cqe_size;
+	__u32				comp_mask;
+};
+
+struct mlx5_create_cq_resp_ex {
+	struct ibv_create_cq_resp_ex	ibv_resp;
+	__u32				cqn;
+	__u32				comp_mask;
+};
+
 struct mlx5_create_srq {
 	struct ibv_create_srq		ibv_cmd;
 	__u64				buf_addr;
src/verbs.c +48 -14

106 lines not on this page · raw message

Signature · 6 lines
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html