Merge tag 'v5.2-rc6' into rdma.git for-next
authorJason Gunthorpe <jgg@mellanox.com>
Sat, 29 Jun 2019 00:18:23 +0000 (21:18 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 29 Jun 2019 00:18:23 +0000 (21:18 -0300)
For dependencies in next patches.

Resolve conflicts:
- Use uverbs_get_cleared_udata() with new cq allocation flow
- Continue to delete nes despite SPDX conflict
- Resolve list appends in mlx5_command_str()
- Use u16 for vport_rule stuff
- Resolve list appends in struct ib_client

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
41 files changed:
1  2 
MAINTAINERS
drivers/infiniband/Kconfig
drivers/infiniband/core/cq.c
drivers/infiniband/core/device.c
drivers/infiniband/core/mr_pool.c
drivers/infiniband/core/rw.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/core/uverbs_std_types_mr.c
drivers/infiniband/hw/efa/efa_com_cmd.c
drivers/infiniband/hw/efa/efa_verbs.c
drivers/infiniband/hw/hfi1/pio.c
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/hfi1/tid_rdma.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/hns/Kconfig
drivers/infiniband/hw/hns/Makefile
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/infiniband/hw/mlx5/ib_rep.h
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/qib/qib_verbs.c
drivers/infiniband/sw/rdmavt/mr.c
drivers/infiniband/sw/rdmavt/qp.c
drivers/infiniband/ulp/ipoib/Kconfig
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/srp/ib_srp.c
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/ecpf.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/nvme/host/rdma.c
include/linux/mlx5/eswitch.h
include/net/devlink.h
include/rdma/ib_verbs.h
include/rdma/mr_pool.h
include/rdma/rw.h
net/core/devlink.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 911533081db5df175879621d10f61a51c2fc1fe0,63fe14c7c68fc31586fad4cd3559a52d03d62ea0..750c4d484329c23254a950b1f1d72a962dbf9c25
@@@ -1047,10 -1053,8 +1058,10 @@@ static struct ib_ucq_object *create_cq(
        return obj;
  
  err_cb:
-       ib_destroy_cq(cq);
+       ib_destroy_cq_user(cq, uverbs_get_cleared_udata(attrs));
 -
 +      cq = NULL;
 +err_free:
 +      kfree(cq);
  err_file:
        if (ev_file)
                ib_uverbs_release_ucq(attrs->ufile, ev_file, obj);
index 06b8c7d017b70840497443d7b2e9da21d11b1384,07ea4e3c45663a5fef7d889e986ddd3918a0efe4..e39fe6a8aac43382eb016e82f91bd6f35e4d7986
@@@ -140,10 -135,8 +140,10 @@@ static int UVERBS_HANDLER(UVERBS_METHOD
  
        return 0;
  err_cq:
-       ib_destroy_cq(cq);
+       ib_destroy_cq_user(cq, uverbs_get_cleared_udata(attrs));
 -
 +      cq = NULL;
 +err_free:
 +      kfree(cq);
  err_event_file:
        if (ev_file)
                uverbs_uobject_put(ev_file_uobj);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 2c0bc2536fda7994e5bbe7b2891816a550aa6d65,e068a02122f5e3e5054d4b9b402500f8028c5e6e..056a6873df7a1c97e0165884cd22ff9e61b9090c
@@@ -899,9 -894,12 +899,10 @@@ static void hns_roce_v1_release_lp_qp(s
                                i, ret);
        }
  
 -      ret = hns_roce_ib_destroy_cq(&free_mr->mr_free_cq->ib_cq, NULL);
 -      if (ret)
 -              dev_err(dev, "Destroy cq for mr_free failed(%d)!\n", ret);
 -
 +      hns_roce_ib_destroy_cq(&free_mr->mr_free_cq->ib_cq, NULL);
 +      kfree(&free_mr->mr_free_cq->ib_cq);
        hns_roce_dealloc_pd(&free_mr->mr_free_pd->ibpd, NULL);
+       kfree(&free_mr->mr_free_pd->ibpd);
  }
  
  static int hns_roce_db_init(struct hns_roce_dev *hr_dev)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 7d3aec98e31fa5282f0dc664f2759d9866b94591,e94686c420004c2bd44417fd21b2f8d67a5e69b5..8cdd7e66f8df5b69d75fe18cb5aafb8a0b1dc436
@@@ -628,7 -632,11 +632,11 @@@ const char *mlx5_command_str(int comman
        MLX5_COMMAND_STR_CASE(QUERY_MODIFY_HEADER_CONTEXT);
        MLX5_COMMAND_STR_CASE(ALLOC_MEMIC);
        MLX5_COMMAND_STR_CASE(DEALLOC_MEMIC);
 -      MLX5_COMMAND_STR_CASE(QUERY_HOST_PARAMS);
 +      MLX5_COMMAND_STR_CASE(QUERY_ESW_FUNCTIONS);
+       MLX5_COMMAND_STR_CASE(CREATE_UCTX);
+       MLX5_COMMAND_STR_CASE(DESTROY_UCTX);
+       MLX5_COMMAND_STR_CASE(CREATE_UMEM);
+       MLX5_COMMAND_STR_CASE(DESTROY_UMEM);
        default: return "unknown command opcode";
        }
  }
Simple merge
index 174eec0871d998afc74ba8f1e215dd7a2786245d,cf226c190329934e6e67eacb36debbdf49d5c20b..ee1335ab1df0fce011cdde9c2eca461ef8883517
@@@ -62,16 -59,5 +62,16 @@@ void *mlx5_eswitch_uplink_get_proto_dev
  u8 mlx5_eswitch_mode(struct mlx5_eswitch *esw);
  struct mlx5_flow_handle *
  mlx5_eswitch_add_send_to_vport_rule(struct mlx5_eswitch *esw,
-                                   int vport, u32 sqn);
+                                   u16 vport_num, u32 sqn);
 +
 +#ifdef CONFIG_MLX5_ESWITCH
 +enum devlink_eswitch_encap_mode
 +mlx5_eswitch_get_encap_mode(const struct mlx5_core_dev *dev);
 +#else  /* CONFIG_MLX5_ESWITCH */
 +static inline enum devlink_eswitch_encap_mode
 +mlx5_eswitch_get_encap_mode(const struct mlx5_core_dev *dev)
 +{
 +      return DEVLINK_ESWITCH_ENCAP_MODE_NONE;
 +}
 +#endif /* CONFIG_MLX5_ESWITCH */
  #endif
Simple merge
index e2478b74551d28ba68e53b301572fa3afa03a073,54873085f2dab21257680f63c2e8db1e83416b8c..26e9c2594913ea473869fd3975ef089609c38270
@@@ -2585,9 -2698,7 +2585,10 @@@ struct ib_client 
        const char *name;
        void (*add)   (struct ib_device *);
        void (*remove)(struct ib_device *, void *client_data);
+       void (*rename)(struct ib_device *dev, void *client_data);
 +      int (*get_nl_info)(struct ib_device *ibdev, void *client_data,
 +                         struct ib_client_nl_info *res);
 +      int (*get_global_nl_info)(struct ib_client_nl_info *res);
  
        /* Returns the net_dev belonging to this ib_client and matching the
         * given parameters.
Simple merge
Simple merge
Simple merge