Merge branch 'mlx' into merge-test
authorDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 19:44:25 +0000 (14:44 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 19:44:25 +0000 (14:44 -0500)
1  2 
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/i40iw/i40iw_verbs.c
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx5/srq.c
drivers/infiniband/hw/nes/nes_verbs.c
drivers/infiniband/ulp/ipoib/ipoib_cm.c

Simple merge
@@@ -684,10 -665,10 +684,11 @@@ void hns_roce_cleanup_bitmap(struct hns
  int hns_roce_bitmap_alloc_range(struct hns_roce_bitmap *bitmap, int cnt,
                                int align, unsigned long *obj);
  void hns_roce_bitmap_free_range(struct hns_roce_bitmap *bitmap,
 -                              unsigned long obj, int cnt);
 +                              unsigned long obj, int cnt,
 +                              int rr);
  
- struct ib_ah *hns_roce_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
+ struct ib_ah *hns_roce_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr,
+                                struct ib_udata *udata);
  int hns_roce_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr);
  int hns_roce_destroy_ah(struct ib_ah *ah);
  
Simple merge
@@@ -2814,17 -2817,25 +2817,22 @@@ static void *mlx4_ib_add(struct mlx4_de
                        kmalloc(BITS_TO_LONGS(ibdev->steer_qpn_count) *
                                sizeof(long),
                                GFP_KERNEL);
 -              if (!ibdev->ib_uc_qpns_bitmap) {
 -                      dev_err(&dev->persist->pdev->dev,
 -                              "bit map alloc failed\n");
 +              if (!ibdev->ib_uc_qpns_bitmap)
                        goto err_steer_qp_release;
 -              }
  
-               bitmap_zero(ibdev->ib_uc_qpns_bitmap, ibdev->steer_qpn_count);
-               err = mlx4_FLOW_STEERING_IB_UC_QP_RANGE(
-                               dev, ibdev->steer_qpn_base,
-                               ibdev->steer_qpn_base +
-                               ibdev->steer_qpn_count - 1);
-               if (err)
-                       goto err_steer_free_bitmap;
+               if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_DMFS_IPOIB) {
+                       bitmap_zero(ibdev->ib_uc_qpns_bitmap,
+                                   ibdev->steer_qpn_count);
+                       err = mlx4_FLOW_STEERING_IB_UC_QP_RANGE(
+                                       dev, ibdev->steer_qpn_base,
+                                       ibdev->steer_qpn_base +
+                                       ibdev->steer_qpn_count - 1);
+                       if (err)
+                               goto err_steer_free_bitmap;
+               } else {
+                       bitmap_fill(ibdev->ib_uc_qpns_bitmap,
+                                   ibdev->steer_qpn_count);
+               }
        }
  
        for (j = 1; j <= ibdev->dev->caps.num_ports; j++)
Simple merge
Simple merge