IB/hfi1: Remove blind constants from 16B update
commit78d3633ba9c2351fc869271ee00284f46e6b15b2
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 1 Feb 2018 18:52:35 +0000 (1 10:52 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 1 Feb 2018 22:43:30 +0000 (1 15:43 -0700)
treee491cd82c0c3de6b950b89fb46fc2829e8f9c5b4
parent0719007663ce2d5da653ec1dc3bcfe2ab681b964
IB/hfi1: Remove blind constants from 16B update

These values were introduced as part of the 16B code to
account for the varying size of the LRH between the differing
packet formats.

Replace the blind constants with defines based on FIELD_SIZEOF()
calls.

Fixes: 5b6cabb0db77 ("IB/hfi1: Add 16B RC/UC support")
Reviewed-by: Don Hiatt <don.hiatt@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/driver.c
drivers/infiniband/hw/hfi1/ruc.c
drivers/infiniband/hw/hfi1/ud.c
drivers/infiniband/hw/hfi1/verbs.h