diff options
author | Don Hiatt <don.hiatt@intel.com> | 2017-08-04 13:54:16 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-22 14:22:37 -0400 |
commit | d98bb7f7e6fa29d45008370084d5cabac7ac69ed (patch) | |
tree | 038e3cfcf118c4d7a6053b003ff130985a6a1fab /drivers/infiniband/hw/hfi1/verbs.h | |
parent | 5786adf3fde7aa22a68eedac9c59e40da76ffbfb (diff) | |
download | linux-d98bb7f7e6fa29d45008370084d5cabac7ac69ed.tar.gz linux-d98bb7f7e6fa29d45008370084d5cabac7ac69ed.tar.bz2 linux-d98bb7f7e6fa29d45008370084d5cabac7ac69ed.zip |
IB/hfi1: Determine 9B/16B L2 header type based on Address handle
When address handle attributes are initialized, the LIDs are
transformed to be in the 32 bit LID space.
When constructing the header, hfi1 driver will look at the LID
to determine the packet header to be created.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@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>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/verbs.h')
-rw-r--r-- | drivers/infiniband/hw/hfi1/verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/verbs.h b/drivers/infiniband/hw/hfi1/verbs.h index 68577a0c922b..d3dd0c01b8f6 100644 --- a/drivers/infiniband/hw/hfi1/verbs.h +++ b/drivers/infiniband/hw/hfi1/verbs.h @@ -147,6 +147,7 @@ struct hfi1_qp_priv { u8 s_sc; /* SC[0..4] for next packet */ struct iowait s_iowait; struct rvt_qp *owner; + u8 hdr_type; /* 9B or 16B */ }; /* |