]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Reorg ctxtdata and rightsize fields
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 20 Jun 2018 16:43:14 +0000 (09:43 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 Jun 2018 15:12:17 +0000 (09:12 -0600)
commit30a25c2c999620adea55b56ba4f16076b3809a7a
tree06b48caa8e6c77b03063c7c08d9dc06cded0f88b
parentaa00a0cd198574a493fcd986e140bdbd34f69013
IB/hfi1: Reorg ctxtdata and rightsize fields

Many fields in ctxtdata are incorrectly sized and the organization of the
fields within the structure is a jumble.

Fix by:
- Correcting oversize fields.
- Putting fields common to all contexts at the top with hot fields
  at the top.
- Moving PSM fields to the bottom of the structure.

Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c