]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: increment msn only when completing a request
authorDavid Marchand <david.marchand@6wind.com>
Fri, 24 Feb 2017 14:38:26 +0000 (15:38 +0100)
committerDoug Ledford <dledford@redhat.com>
Sat, 25 Mar 2017 02:07:27 +0000 (22:07 -0400)
commit1209efc14c782c28151b17cde27a56dbb0904f7f
tree0eb856931b5b5655ae23e21087a12fe826a62f88
parent12d3bb13d28a59aa1d68e59b5d0a17c6b7f7fc8b
IB/rxe: increment msn only when completing a request

According to C9-147, MSN should only be incremented when the last packet of
a multi packet request has been received.

"Logically, the requester associates a sequential Send Sequence Number
(SSN) with each WQE posted to the send queue. The SSN bears a one-
to-one relationship to the MSN returned by the responder in each re-
sponse packet. Therefore, when the requester receives a response, it in-
terprets the MSN as representing the SSN of the most recent request
completed by the responder to determine which send WQE(s) can be
completed."

Fixes: 5deaf88696f1 ("Soft RoCE driver")
Signed-off-by: David Marchand <david.marchand@6wind.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_resp.c