IB/rxe: avoid back-to-back retries

Error retries can occur due to timeouts, NAKs or receiving
packets beyond the current read request. Avoid back-to-back
retries due to packet processing, by only retrying the initial
attempt immediately. Subsequent retries must be due to timeouts.

Continue to process completion packets after scheduling a retry.

Signed-off-by: Vijay Immanuel <vijayi@attalasystems.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Vijay Immanuel
2018-06-13 18:47:30 -07:00
committed by Doug Ledford
parent b97db58557
commit 4e4c53df56
2 changed files with 18 additions and 1 deletions

View File

@@ -158,6 +158,7 @@ struct rxe_comp_info {
int opcode;
int timeout;
int timeout_retry;
int started_retry;
u32 retry_cnt;
u32 rnr_retry;
struct rxe_task task;