IB/hfi1: Setup common IB fields in hfi1_packet struct
We move many common IB fields into the hfi1_packet structure and set them up in a single function. This allows us to set the fields in a single place and not deal with them throughout the driver. 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>
This commit is contained in:
@@ -9810,15 +9810,6 @@ void hfi1_clear_tids(struct hfi1_ctxtdata *rcd)
|
||||
hfi1_put_tid(dd, i, PT_INVALID, 0, 0);
|
||||
}
|
||||
|
||||
struct ib_header *hfi1_get_msgheader(
|
||||
struct hfi1_devdata *dd, __le32 *rhf_addr)
|
||||
{
|
||||
u32 offset = rhf_hdrq_offset(rhf_to_cpu(rhf_addr));
|
||||
|
||||
return (struct ib_header *)
|
||||
(rhf_addr - dd->rhf_offset + offset);
|
||||
}
|
||||
|
||||
static const char * const ib_cfg_name_strings[] = {
|
||||
"HFI1_IB_CFG_LIDLMC",
|
||||
"HFI1_IB_CFG_LWID_DG_ENB",
|
||||
|
Reference in New Issue
Block a user