diff options
author | Jubin John <jubin.john@intel.com> | 2016-06-09 17:51:27 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-18 03:11:26 +0300 |
commit | c3c64a951cbdb6096d02dcc339a9c807ce1e976a (patch) | |
tree | 477f60e860ddcdc3678e7f8d245e7d4c4b7b159b /drivers/infiniband | |
parent | 501edc42446e89fa67fb6ef2c9afb50792c310c0 (diff) | |
download | linux-c3c64a951cbdb6096d02dcc339a9c807ce1e976a.tar.xz |
IB/hfi1: Increase packet egress timeout
The current value of 500us for the packet egress timeout is too small
which causes the host to declare failure on draining packets too early
and unnecessarily bounces the link. Increase this to 50ms taking into
account the switch packet discard timer default and the worst case
per-VL package drainage rate.
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/hfi1/pio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/pio.c b/drivers/infiniband/hw/hfi1/pio.c index e0e1ff2a0c72..d4022450b73f 100644 --- a/drivers/infiniband/hw/hfi1/pio.c +++ b/drivers/infiniband/hw/hfi1/pio.c @@ -995,7 +995,7 @@ static void sc_wait_for_packet_egress(struct send_context *sc, int pause) /* counter is reset if occupancy count changes */ if (reg != reg_prev) loop = 0; - if (loop > 500) { + if (loop > 50000) { /* timed out - bounce the link */ dd_dev_err(dd, "%s: context %u(%u) timeout waiting for packets to egress, remaining count %u, bouncing link\n", |