Message ID | 20181128144428.10591.47294.stgit@scvm10.sc.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 90b2620e6a8aa08c40cc78d61603e0acd853c33a |
Headers | show |
Series | Patches for 4.20 rc cycle | expand |
diff --git a/drivers/infiniband/hw/hfi1/qp.c b/drivers/infiniband/hw/hfi1/qp.c index 6f3bc4d..1a01624 100644 --- a/drivers/infiniband/hw/hfi1/qp.c +++ b/drivers/infiniband/hw/hfi1/qp.c @@ -340,6 +340,13 @@ int hfi1_setup_wqe(struct rvt_qp *qp, struct rvt_swqe *wqe, bool *call_send) default: break; } + + /* + * System latency between send and schedule is large enough that + * forcing call_send to true for piothreshold packets is necessary. + */ + if (wqe->length <= piothreshold) + *call_send = true; return 0; }