]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
IB/hfi1: Revert egress pkey check enforcement
authorAlex Estrin <alex.estrin@intel.com>
Fri, 4 Aug 2017 20:52:13 +0000 (13:52 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 14:30:57 +0000 (10:30 -0400)
BugLink: http://bugs.launchpad.net/bugs/1720154
commit ecdb19f4b513033e6f2c4326cd5b81e04393e5e1 upstream.

Current code has some serious flaws. Disarm the flag
pending an appropriate patch.

Fixes: 53526500f301 ("IB/hfi1: Permanently enable P_Key checking in HFI")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/infiniband/hw/hfi1/init.c

index 4a11d4da4c9201ce4ba8d8df12b7895ff75c07ec..ff30b34c8984a05cd03b00ce63f745b2501d9fec 100644 (file)
@@ -483,7 +483,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,