]> git.karo-electronics.de Git - linux-beck.git/commit
IB/hfi1: Optimize devdata cachelines
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Mon, 17 Oct 2016 11:19:35 +0000 (04:19 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:37:27 +0000 (16:37 -0500)
commit6e768f0682e26e7683c4af5b0de04a2e08bc67db
tree21b4179a223198acf1f052854bfade590a8e35bf
parenta6cd5f08e085176fe8dbd4c57217058e53dfc4d9
IB/hfi1: Optimize devdata cachelines

Profiling shows hot path struct members that need
to be in a minimum set of cachelines.

Group these struct member in the same cacheline:
sc2vl_lock
sc2vl
rhf_rcv_function_map
rcv_limit
rhf_offset

Group these struct member in the same cacheline:
process_pio_send
process_dma_send
pport
rcd
int_counter
flags
num_pports
first_user_ctxt

Fill holes in struct hfi1_devdata revealed by pahole.

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/hfi.h