IB/rdmavt: Correct issues with read-mostly and send size cache lines
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Mon, 2 Oct 2017 18:04:41 +0000 (11:04 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 19:39:45 +0000 (15:39 -0400)
commit7ebfc93edcefa0c4c09f194ebdace9ddae15efa6
tree6af0161b7852ea5489b5bde2ab650df0648001b9
parenta917374e8a20cdfbaaaaaa2b01331dc063d38848
IB/rdmavt: Correct issues with read-mostly and send size cache lines

The s_ahgpsn was incorrectly placed in the read-mostly section of the QP
and the s_curr_size and s_hdrwords are oversized. The misplaced
s_ahgpsn will cause the read-mostly cachelines to thrash.

Place s_ahgpsn in the send side cache lines and correctly size and
s_hdrwords and s_cur_size to keep the send side cachelines at the same
size.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
include/rdma/rdmavt_qp.h