]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/infiniband/hw/mlx4/qp.c
IB/mlx4: Fix flow label returned from query QP
[linux-2.6-omap-h63xx.git] / drivers / infiniband / hw / mlx4 / qp.c
index 40042184ad589b0b8b9d124b6622637f11251f02..2d00b4ee80c0abe2d5b1267ee9a51680d57348ff 100644 (file)
@@ -1515,7 +1515,7 @@ static void to_ib_ah_attr(struct mlx4_dev *dev, struct ib_ah_attr *ib_ah_attr,
                ib_ah_attr->grh.traffic_class =
                        (be32_to_cpu(path->tclass_flowlabel) >> 20) & 0xff;
                ib_ah_attr->grh.flow_label =
-                       be32_to_cpu(path->tclass_flowlabel) & 0xffffff;
+                       be32_to_cpu(path->tclass_flowlabel) & 0xfffff;
                memcpy(ib_ah_attr->grh.dgid.raw,
                        path->rgid, sizeof ib_ah_attr->grh.dgid.raw);
        }