Skip to content

new ib_drain_qp() API

Steve Wise linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest1 of 4 patches 5 repliesIn review

Changes in v4 from the cover letter

- WARN_ONCE() if the CQ is using IB_POLL_DIRECT context.

- added iser patch to use ib_drain_sq().

- fixed up function comments to specify caller requirements

- checkpatched

1 of 4 patches is in this archive. The cover letter announces 4.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4IB: new common API for draining queuesdrivers/infiniband/core/verbs.c include/rdma/ib_verbs.h+169 -04 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChuck LeverBart Van AsscheSagi GrimbergDevesh Sharma
SeriesR-b R-b R-b A-b
1/4R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] new ib_drain_qp() API

This series creates new helper API functions for draining a queue pair. It is a rework of an original patch created by Christoph Hellwig as part of the CQ API rework and was dropped to be resubmitted by me with iw_cxgb4 support.

Original thread: http://www.spinics.net/lists/linux-rdma/msg30296.html

Changes since v3:

- WARN_ONCE() if the CQ is using IB_POLL_DIRECT context.

- added iser patch to use ib_drain_sq().

- fixed up function comments to specify caller requirements

- checkpatched

Changes since v2:

- created 3 drain API functions: ib_drain_rq(), ib_drain_sq(), and ib_drain_qp()

- add provider-specific drain function pointers for the sq and rq

- refactored the code a bit

- support for IB_DIRECT_POLL CQs

Changes since v1:

- added comments to the ib_drain_qp() function header specifying the consumer requirements

- in __ib_drain_qp(), if the ib_post_send() fails, still wait for the recv wr to drain since we already posted it.

- CC the SRP maintainer, [email protected]

---

Steve Wise (4):
IB: new common API for draining queues
iw_cxgb4: add queue drain functions
IB/srp: Use ib_drain_rq()
IB/iser: Use ib_drain_sq()

 drivers/infiniband/core/verbs.c              | 164 +++++++++++++++++++++++++++
 drivers/infiniband/hw/cxgb4/cq.c             |   9 +-
 drivers/infiniband/hw/cxgb4/iw_cxgb4.h       |   4 +
 drivers/infiniband/hw/cxgb4/provider.c       |   2 +
 drivers/infiniband/hw/cxgb4/qp.c             |  16 +++
 drivers/infiniband/ulp/iser/iscsi_iser.h     |   7 --
 drivers/infiniband/ulp/iser/iser_initiator.c |   7 --
 drivers/infiniband/ulp/iser/iser_verbs.c     |  15 +--
 drivers/infiniband/ulp/srp/ib_srp.c          |  40 +------
 include/rdma/ib_verbs.h                      |   5 +
 10 files changed, 205 insertions(+), 64 deletions(-)
Signature · 6 lines
2.7.0

--
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