IB/hfi1: Add functions to parse BTH/IB headers
authorDon Hiatt <don.hiatt@intel.com>
Fri, 12 May 2017 16:19:55 +0000 (09:19 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 27 Jun 2017 20:56:33 +0000 (16:56 -0400)
commit7dafbab3753fcf59bc81748e5b2c5bf04e1c62c7
tree5770099bfb9f0e2e920a934a945a5b5f9ac92ca8
parentaa560df381f7199fafa4e7f71382de28f0400270
IB/hfi1: Add functions to parse BTH/IB headers

Improve code readablity by adding inline functions
to read specific BTH/IB fields without knowledge of
byte offsets.

Reviewed-by: Brian Welty <brian.welty@intel.com>
Reviewed-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/driver.c
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/hfi1/uc.c
drivers/infiniband/hw/hfi1/ud.c
drivers/infiniband/hw/hfi1/verbs.c
include/rdma/ib_hdrs.h
include/rdma/ib_verbs.h
include/rdma/rdmavt_qp.h