]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Remove blind constants from 16B update
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 1 Feb 2018 18:52:35 +0000 (10:52 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 1 Feb 2018 22:43:30 +0000 (15:43 -0700)
commite6690751850e14e0cc8586c3f72697c577c919ef
treee491cd82c0c3de6b950b89fb46fc2829e8f9c5b4
parent05031ab8e45a22054010e30dbc19fbdf19ff8bfa
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: 52b76852fe24 ("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