IB/hfi1: Use aborts to trigger RC throttling
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 14 Jun 2019 16:32:44 +0000 (12:32 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Jun 2019 01:15:40 +0000 (21:15 -0400)
commit4bb02e9572af1383038d83ad196d7166c515f2ee
tree9e6b3fd603cce795c5e7d5f58c02e7b11813365b
parent9755f72496664eec70bc804104118b5797b6bf63
IB/hfi1: Use aborts to trigger RC throttling

SDMA and pio flushes will cause a lot of packets to be transmitted
after a link has gone down, using a lot of CPU to retransmit
packets.

Fix for RC QPs by recognizing the flush status and:
- Forcing a timer start
- Putting the QP into a "send one" mode

Fixes: 7724105686e7 ("IB/hfi1: add driver files")
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>
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/hfi1/verbs.h