IB/hfi1: Cleanup of exp_rcv
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 16 May 2018 01:31:09 +0000 (18:31 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 15:39:25 +0000 (09:39 -0600)
commitc8314811f9b2068eb53728d7a06b1ea195579e79
tree9159a4e857f0dba15d9636e714c66a16fb4146c6
parent43a68c35c7b1135ec05b8c84e7509a50925b00b6
IB/hfi1: Cleanup of exp_rcv

The knowledge of the internal workings of the expect receive
is too distributed.

Fix by:
- right size several rcd fields associated with
  expect receive
- making an init entrance to init all the lists
- consolidate all the allocations into an array anchored
  in the rcd

Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/exp_rcv.c
drivers/infiniband/hw/hfi1/exp_rcv.h
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c