Commit 0aae392b authored by Leon Romanovsky's avatar Leon Romanovsky

vdpa/mlx5: Make hardware definitions visible to all mlx5 devices

Move mlx5_vdpa IFC header file to the general include folder, so
mlx5_core will be able to reuse it to check if VDPA is supported
prior to creating an auxiliary device.

As part of this move, update the header file name to mlx5 general
naming scheme.
Reviewed-by: default avatarParav Pandit <parav@nvidia.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
parent 17a7612b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/mlx5/driver.h> #include <linux/mlx5/driver.h>
#include <linux/mlx5/device.h> #include <linux/mlx5/device.h>
#include "mlx5_vdpa_ifc.h" #include <linux/mlx5/mlx5_ifc_vdpa.h>
#include "mlx5_vnet.h" #include "mlx5_vnet.h"
MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>"); MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>");
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#include <linux/mlx5/vport.h> #include <linux/mlx5/vport.h>
#include <linux/mlx5/fs.h> #include <linux/mlx5/fs.h>
#include <linux/mlx5/device.h> #include <linux/mlx5/device.h>
#include <linux/mlx5/mlx5_ifc_vdpa.h>
#include "mlx5_vnet.h" #include "mlx5_vnet.h"
#include "mlx5_vdpa_ifc.h"
#include "mlx5_vdpa.h" #include "mlx5_vdpa.h"
#define to_mvdev(__vdev) container_of((__vdev), struct mlx5_vdpa_dev, vdev) #define to_mvdev(__vdev) container_of((__vdev), struct mlx5_vdpa_dev, vdev)
......
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
/* Copyright (c) 2020 Mellanox Technologies Ltd. */ /* Copyright (c) 2020 Mellanox Technologies Ltd. */
#ifndef __MLX5_VDPA_IFC_H_ #ifndef __MLX5_IFC_VDPA_H_
#define __MLX5_VDPA_IFC_H_ #define __MLX5_IFC_VDPA_H_
#include <linux/mlx5/mlx5_ifc.h>
enum { enum {
MLX5_VIRTIO_Q_EVENT_MODE_NO_MSIX_MODE = 0x0, MLX5_VIRTIO_Q_EVENT_MODE_NO_MSIX_MODE = 0x0,
...@@ -165,4 +163,4 @@ struct mlx5_ifc_modify_virtio_net_q_out_bits { ...@@ -165,4 +163,4 @@ struct mlx5_ifc_modify_virtio_net_q_out_bits {
struct mlx5_ifc_general_obj_out_cmd_hdr_bits general_obj_out_cmd_hdr; struct mlx5_ifc_general_obj_out_cmd_hdr_bits general_obj_out_cmd_hdr;
}; };
#endif /* __MLX5_VDPA_IFC_H_ */ #endif /* __MLX5_IFC_VDPA_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment