mad.c (320438301b85038e995b5a40a24c43cbc0ed4909) mad.c (62ede7779904bc75bdd84f1ff0016113956ce3b4)
1/*
2 * Copyright(c) 2015-2017 Intel Corporation.
3 *
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
6 *
7 * GPL LICENSE SUMMARY
8 *

--- 4202 unchanged lines hidden (view full) ---

4211 *
4212 * SMPs which arrive from other nodes are instead checked by
4213 * opa_smp_check().
4214 */
4215static int opa_local_smp_check(struct hfi1_ibport *ibp,
4216 const struct ib_wc *in_wc)
4217{
4218 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp);
1/*
2 * Copyright(c) 2015-2017 Intel Corporation.
3 *
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
6 *
7 * GPL LICENSE SUMMARY
8 *

--- 4202 unchanged lines hidden (view full) ---

4211 *
4212 * SMPs which arrive from other nodes are instead checked by
4213 * opa_smp_check().
4214 */
4215static int opa_local_smp_check(struct hfi1_ibport *ibp,
4216 const struct ib_wc *in_wc)
4217{
4218 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp);
4219 u16 slid = ib_slid_cpu16(in_wc->slid);
4219 u16 slid = ib_lid_cpu16(in_wc->slid);
4220 u16 pkey;
4221
4222 if (in_wc->pkey_index >= ARRAY_SIZE(ppd->pkeys))
4223 return 1;
4224
4225 pkey = ppd->pkeys[in_wc->pkey_index];
4226 /*
4227 * We need to do the "node-local" checks specified in OPAv1,

--- 450 unchanged lines hidden ---
4220 u16 pkey;
4221
4222 if (in_wc->pkey_index >= ARRAY_SIZE(ppd->pkeys))
4223 return 1;
4224
4225 pkey = ppd->pkeys[in_wc->pkey_index];
4226 /*
4227 * We need to do the "node-local" checks specified in OPAv1,

--- 450 unchanged lines hidden ---