staging/rdma/hfi1: Fix regression in send performance
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 26 Oct 2015 14:28:27 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:16:54 +0000 (17:16 +0900)
commit13a69f5299688074666e1f74b90ddc6beae43e6d
treec1ff099fe6ee9a7aba52be048c92a803672ce7b9
parentdaac731ba815ef0669d99db5a6a176bac567e156
staging/rdma/hfi1: Fix regression in send performance

The clear_ahg call is new in hfi1 vs qib.  For small messages the progress
routine always builds one and clears out the ahg state when the queue has gone
to empty which is the predominant case for small messages.

Inline the routine and avoid the call to sdma_ahg_free to mitigate the
performance impact.  Finally, move the routine to qp.h for scope reasons.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/qp.h
drivers/staging/rdma/hfi1/ruc.c
drivers/staging/rdma/hfi1/verbs.h