From: Sebastian Sanchez Date: Sun, 25 Sep 2016 14:41:11 +0000 (-0700) Subject: IB/hfi1: Remove filtering of Set(PkeyTable) in HFI SMA X-Git-Tag: v4.9-rc1~137^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c08d57a30aa7bb05a9a8d7faf3cf2f7502e1eb5f;p=karo-tx-linux.git 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 Signed-off-by: Sebastian Sanchez Signed-off-by: Dennis Dalessandro Signed-off-by: Doug Ledford --- 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 @@ -1405,12 +1405,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