IB/rdmavt, staging/rdma/hfi1: use qps to dynamically scale timeout value
authorVennila Megavannan <vennila.megavannan@intel.com>
Tue, 9 Feb 2016 22:29:49 +0000 (14:29 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:38:07 +0000 (20:38 -0500)
commitbfee5e32e701b98634b380a9eef8b5820feb7488
tree2d88caba4531edaee754643fdb943450765f0ca8
parent773d0451685b96f157ccd617a5e9cd9d3fa7d986
IB/rdmavt, staging/rdma/hfi1: use qps to dynamically scale timeout value

A busy_jiffies variable is maintained and updated when rc qps are
created and deleted. busy_jiffies is a scaled value of the number
of rc qps in the device. busy_jiffies is incremented every rc qp
scaling interval. busy_jiffies is added to the rc timeout
in add_retry_timer and mod_retry_timer. The rc qp scaling interval
is selected based on extensive performance evaluation of targeted
workloads.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Vennila Megavannan <vennila.megavannan@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/qp.c
drivers/staging/rdma/hfi1/rc.c
include/rdma/rdma_vt.h
include/rdma/rdmavt_qp.h