summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Estrin <alex.estrin@intel.com>2017-08-04 13:52:13 -0700
committerDoug Ledford <dledford@redhat.com>2017-08-22 14:22:36 -0400
commitecdb19f4b513033e6f2c4326cd5b81e04393e5e1 (patch)
tree019e3b16eef2ab3ce2fa4257043ddafc9c3e28ae
parente093111ddb6c786e32b882108c1c08ef83d781f4 (diff)
downloadlinux-ecdb19f4b513033e6f2c4326cd5b81e04393e5e1.tar.bz2
IB/hfi1: Revert egress pkey check enforcement
Current code has some serious flaws. Disarm the flag pending an appropriate patch. Fixes: 53526500f301 ("IB/hfi1: Permanently enable P_Key checking in HFI") Cc: stable@vger.kernel.org Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Alex Estrin <alex.estrin@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/hfi1/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/init.c b/drivers/infiniband/hw/hfi1/init.c
index be027c9c880e..da7cd5bd27ca 100644
--- a/drivers/infiniband/hw/hfi1/init.c
+++ b/drivers/infiniband/hw/hfi1/init.c
@@ -519,7 +519,6 @@ void hfi1_init_pportdata(struct pci_dev *pdev, struct hfi1_pportdata *ppd,
ppd->pkeys[default_pkey_idx] = DEFAULT_P_KEY;
ppd->part_enforce |= HFI1_PART_ENFORCE_IN;
- ppd->part_enforce |= HFI1_PART_ENFORCE_OUT;
if (loopback) {
hfi1_early_err(&pdev->dev,