IB/hfi1: Revert egress pkey check enforcement
authorAlex Estrin <alex.estrin@intel.com>
Fri, 4 Aug 2017 20:52:13 +0000 (13:52 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:36 +0000 (14:22 -0400)
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>
drivers/infiniband/hw/hfi1/init.c

index be027c9c880ee9f0f84b101f6c115294f91dc8d0..da7cd5bd27ca7178d02167aff0e23297e1cbf4cc 100644 (file)
@@ -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,