diff options
author | Kaike Wan <[email protected]> | 2019-10-25 15:58:36 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-11-06 13:15:36 -0400 |
commit | c2be3865a1763c4be39574937e1aae27e917af4d (patch) | |
tree | 9216c73b5ee76745df1120d7c4c7bd179f195676 /tools/perf/scripts/python/stackcollapse.py | |
parent | c1abd865bd125015783286b353abb8da51644f59 (diff) |
IB/hfi1: Calculate flow weight based on QP MTU for TID RDMA
For a TID RDMA WRITE request, a QP on the responder side could be put into
a queue when a hardware flow is not available. A RNR NAK will be returned
to the requester with a RNR timeout value based on the position of the QP
in the queue. The tid_rdma_flow_wt variable is used to calculate the
timeout value and is determined by using a MTU of 4096 at the module
loading time. This could reduce the timeout value by half from the desired
value, leading to excessive RNR retries.
This patch fixes the issue by calculating the flow weight with the real
MTU assigned to the QP.
Fixes: 07b923701e38 ("IB/hfi1: Add functions to receive TID RDMA WRITE request")
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Reviewed-by: Mike Marciniszyn <[email protected]>
Reviewed-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Kaike Wan <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions