Message ID | 1470760775-6813-8-git-send-email-matanb@mellanox.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index c72797c..003042a 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -49,6 +49,7 @@ #include <linux/mlx5/vport.h> #include <rdma/ib_smi.h> #include <rdma/ib_umem.h> +#include <rdma/uverbs_ioctl_cmd.h> #include <linux/in.h> #include <linux/etherdevice.h> #include <linux/mlx5/fs.h> @@ -2467,6 +2468,8 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev) if (err) goto err_rsrc; + dev->ib_dev.types_group = &uverbs_types_group; + err = ib_register_device(&dev->ib_dev, NULL); if (err) goto err_odp;
This patch simply tells mlx5 to use the uverb objects declared by the common layer. Signed-off-by: Matan Barak <matanb@mellanox.com> --- drivers/infiniband/hw/mlx5/main.c | 3 +++ 1 file changed, 3 insertions(+)