Commit 2e903b61 authored by Don Hiatt's avatar Don Hiatt Committed by Jason Gunthorpe

IB/hfi1: Change slid arg in ingress_pkey_table_fail to 32bit

Change the slid arg to ingress_pkey_table_fail() to a full
32Bits and do not convert to 16Bits in caller. This is so we
can keep everything 32bit in the kernel and only change to
16bit at the uapi boundary.
Signed-off-by: default avatarDon Hiatt <don.hiatt@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 2ef7f2e2
...@@ -1624,7 +1624,7 @@ static int ingress_pkey_table_search(struct hfi1_pportdata *ppd, u16 pkey) ...@@ -1624,7 +1624,7 @@ static int ingress_pkey_table_search(struct hfi1_pportdata *ppd, u16 pkey)
* the 'error info' for this failure. * the 'error info' for this failure.
*/ */
static void ingress_pkey_table_fail(struct hfi1_pportdata *ppd, u16 pkey, static void ingress_pkey_table_fail(struct hfi1_pportdata *ppd, u16 pkey,
u16 slid) u32 slid)
{ {
struct hfi1_devdata *dd = ppd->dd; struct hfi1_devdata *dd = ppd->dd;
......
...@@ -4348,11 +4348,7 @@ static int opa_local_smp_check(struct hfi1_ibport *ibp, ...@@ -4348,11 +4348,7 @@ static int opa_local_smp_check(struct hfi1_ibport *ibp,
*/ */
if (pkey == LIM_MGMT_P_KEY || pkey == FULL_MGMT_P_KEY) if (pkey == LIM_MGMT_P_KEY || pkey == FULL_MGMT_P_KEY)
return 0; return 0;
/* ingress_pkey_table_fail(ppd, pkey, in_wc->slid);
* On OPA devices it is okay to lose the upper 16 bits of LID as this
* information is obtained elsewhere. Mask off the upper 16 bits.
*/
ingress_pkey_table_fail(ppd, pkey, ib_lid_cpu16(0xFFFF & in_wc->slid));
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment