diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2017-02-08 05:27:49 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-02-19 09:18:42 -0500 |
commit | f9215b5e536b0c598dff4041fc7d6136cd599981 (patch) | |
tree | 84bde93761bdf3359c2c4ad5e558b7ea912796a7 /include/rdma | |
parent | 3fc4a0906f9c49839f03de4b6500d82fa5b3254f (diff) | |
download | linux-stable-f9215b5e536b0c598dff4041fc7d6136cd599981.tar.gz linux-stable-f9215b5e536b0c598dff4041fc7d6136cd599981.tar.bz2 linux-stable-f9215b5e536b0c598dff4041fc7d6136cd599981.zip |
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>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/rdmavt_qp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/rdmavt_qp.h b/include/rdma/rdmavt_qp.h index 561b6c876086..2f91fae8d23f 100644 --- a/include/rdma/rdmavt_qp.h +++ b/include/rdma/rdmavt_qp.h @@ -144,6 +144,8 @@ #define RVT_FLUSH_RECV 0x40 #define RVT_PROCESS_OR_FLUSH_SEND \ (RVT_PROCESS_SEND_OK | RVT_FLUSH_SEND) +#define RVT_SEND_OR_FLUSH_OR_RECV_OK \ + (RVT_PROCESS_SEND_OK | RVT_FLUSH_SEND | RVT_PROCESS_RECV_OK) /* * Internal send flags |