]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rdmavt, IB/hfi1, IB/qib: Correct ack count for passive (RTR) QPs
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 8 Feb 2017 13:27:49 +0000 (05:27 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:42 +0000 (09:18 -0500)
commit7ee6d3c989ec64280d84b8e8b2f960df6edd70b4
tree84bde93761bdf3359c2c4ad5e558b7ea912796a7
parent6c0b90d58873faa2339647cc19516c76f920ed2a
IB/rdmavt, IB/hfi1, IB/qib: Correct ack count for passive (RTR) QPs

The send complete for RC QPs mismanages the ack count when the
responder side is only in RTR.

A QP in that state cannot send requests, but it can be the target
for operations that elicit responses.

Adjust the RC completion logic to correct the count maintenance
by reflecting RECV_OK in a new state test.

Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/qib/qib_rc.c
include/rdma/rdmavt_qp.h