aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/mad.c
diff options
context:
space:
mode:
authorSebastian Sanchez <sebastian.sanchez@intel.com>2016-09-25 07:41:11 -0700
committerDoug Ledford <dledford@redhat.com>2016-10-02 08:42:12 -0400
commitc08d57a30aa7bb05a9a8d7faf3cf2f7502e1eb5f (patch)
treefab74fbfee92a1023d43f814f2e9d79dece6a0a7 /drivers/infiniband/hw/hfi1/mad.c
parentIB/qib: Remove qpt_mask global (diff)
downloadlinux-dev-c08d57a30aa7bb05a9a8d7faf3cf2f7502e1eb5f.tar.xz
linux-dev-c08d57a30aa7bb05a9a8d7faf3cf2f7502e1eb5f.zip
IB/hfi1: Remove filtering of Set(PkeyTable) in HFI SMA
The FM should have full control to set the pkeys in the driver pkey table. Remove filtering done by the driver. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hfi1/mad.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/hfi1/mad.c b/drivers/infiniband/hw/hfi1/mad.c
index aecfc5b12d14..9487c9bb8920 100644
--- a/drivers/infiniband/hw/hfi1/mad.c
+++ b/drivers/infiniband/hw/hfi1/mad.c
@@ -1406,12 +1406,6 @@ static int set_pkeys(struct hfi1_devdata *dd, u8 port, u16 *pkeys)
if (key == okey)
continue;
/*
- * Don't update pkeys[2], if an HFI port without MgmtAllowed
- * by neighbor is a switch.
- */
- if (i == 2 && !ppd->mgmt_allowed && ppd->neighbor_type == 1)
- continue;
- /*
* The SM gives us the complete PKey table. We have
* to ensure that we put the PKeys in the matching
* slots.