IB/qib: Add cache line awareness to qib_qp and qib_devdata structures
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 7 May 2012 18:02:31 +0000 (14:02 -0400)
committerRoland Dreier <roland@purestorage.com>
Mon, 14 May 2012 19:43:34 +0000 (12:43 -0700)
commit1c94283ddbe8a9945c4aaac8b0be90d47f97f2df
tree37d46ea239d1e872007bd0dc93b2a3d40311afa8
parent3236b2d469dba42fde837b8cb06308f7f360dfed
IB/qib: Add cache line awareness to qib_qp and qib_devdata structures

This patch reorganizes the QP and devdata files to be more cache line aware.

qib_qp fields in particular are split into read-mostly, send, and receive fields.

qib_devdata fields are split into read-mostly and read/write fields

Testing has show that bidirectional tests improve by as much as 100%
with this patch.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_qp.c
drivers/infiniband/hw/qib/qib_rc.c
drivers/infiniband/hw/qib/qib_ruc.c
drivers/infiniband/hw/qib/qib_uc.c
drivers/infiniband/hw/qib/qib_ud.c
drivers/infiniband/hw/qib/qib_verbs.h