Message ID | 20181128181941.30921.34813.stgit@scvm10.sc.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ff8b67fccdb65402df78a1695c38be805252cf8e |
Delegated to: | Jason Gunthorpe |
Headers | show |
Series | IB/hfi1: Random fixes for driver to land in for-next | expand |
diff --git a/drivers/infiniband/hw/hfi1/driver.c b/drivers/infiniband/hw/hfi1/driver.c index d5277c2..a8ad707 100644 --- a/drivers/infiniband/hw/hfi1/driver.c +++ b/drivers/infiniband/hw/hfi1/driver.c @@ -1426,7 +1426,7 @@ static int hfi1_bypass_ingress_pkt_check(struct hfi1_packet *packet) if ((!(hfi1_is_16B_mcast(packet->dlid))) && (packet->dlid != opa_get_lid(be32_to_cpu(OPA_LID_PERMISSIVE), 16B))) { - if (packet->dlid != ppd->lid) + if ((packet->dlid & ~((1 << ppd->lmc) - 1)) != ppd->lid) return -EINVAL; }