Skip to content

Add cross-channel support

Leon Romanovsky linux-rdma 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Changes in v1 from the cover letter

* Enrich cover message and commit messages.
* Add ibv_cc_pingpong example.
* Add manual to all newly created flags.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Add CQ ignore overrun flaginclude/infiniband/verbs.h man/ibv_create_cq_ex.3+15 -40 replies
2/5Add cross-channel QP flagsinclude/infiniband/verbs.h man/ibv_create_qp_ex.3 src/cmd.c+25 -30 replies
3/5Add cross-channel work requests primitivesinclude/infiniband/verbs.h man/ibv_post_send.3+37 -40 replies
4/5Export cross-channel capability flaginclude/infiniband/verbs.h+1 -00 replies
5/5Add an example of cross-channel synchronizationMakefile.am examples/.gitignore examples/cc_pingpong.c +1 more+1063 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSagi Grimberg
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH V1 libibverbs 0/5] Add cross-channel support

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

The following set of patches adds cross-channel (CC) support in the libibverbs.

The cross-channel feature allows to execute WQEs that involve cross-channel synchronization of IO operations’ on different QPs.

Complex applications usually require synchronizations for IO operations from multiple sources before continuing their execution.

In order to implement this, the host software usually needs to handle completions from each one of the receive queues (arriving in arbitrary order), process the data after last message arrival and only then post work request on the send queue to send the combined data to its destination.

Execution of such operation generates multiple interrupts at an unpredictable time with an overhead of interrupts handling and context switches.

This patchset adds synchronization primitives which gives ability to perform conditional operations and a following submission will introduce arithmetic calculation offload.

Synchronization abilities combined with arithmetic calculations will allow us to program complex scenarios with a single function call, hereby significantly reducing overhead associated with IO processing.

Patch #1 adds CQ ignore overrun flag.
Patch #2 implements QP flags to configure master/slave properties
of queue.
Patch #3 expands work request structure to have cross-channel
specific primitives.
Patch #4 exports cross-channel device capability flag. Patch #5 provides an example of cross-channel synchronizations.

These patches were added on top of "Completion timestamping" [1] and "Expose QP block self multicast loopback creation flag" [2] series.

[1] https://www.mail-archive.com/[email protected]/msg28895.html
[2] http://comments.gmane.org/gmane.linux.drivers.rdma/30158

Changes from v0:
* Enrich cover message and commit messages.
* Add ibv_cc_pingpong example.
* Add manual to all newly created flags.

Leon Romanovsky (5):
Add CQ ignore overrun flag
Add cross-channel QP flags
Add cross-channel work requests primitives
Export cross-channel capability flag
Add an example of cross-channel synchronization

 Makefile.am                |   6 +-
 examples/.gitignore        |   1 +
 examples/cc_pingpong.c     | 991 +++++++++++++++++++++++++++++++++++++++++++++
 include/infiniband/verbs.h |  23 +-
 man/ibv_cc_pingpong.1      |  66 +++
 man/ibv_create_cq_ex.3     |  18 +-
 man/ibv_create_qp_ex.3     |  18 +-
 man/ibv_post_send.3        |  25 +-
 src/cmd.c                  |   5 +-
 9 files changed, 1141 insertions(+), 12 deletions(-)
 create mode 100644 examples/cc_pingpong.c
 create mode 100644 man/ibv_cc_pingpong.1
Signature · 5 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