Skip to content

Commit

Permalink
IB/hfi1: Revert egress pkey check enforcement
Browse files Browse the repository at this point in the history
Current code has some serious flaws. Disarm the flag
pending an appropriate patch.

Fixes: 5352650 ("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>
  • Loading branch information
Alex Estrin authored and Doug Ledford committed Aug 22, 2017
1 parent e093111 commit ecdb19f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/infiniband/hw/hfi1/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ecdb19f

Please sign in to comment.