X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fcommon%2Fmlx5%2Fmlx5_common.h;h=2988f4b26a654e5f22023c6ae977509d6ce3ee2c;hb=d768f324d6c24eb376e6ce142f54e9cbdce49225;hp=9d464d43f4a48cf01e53005d62cafbf67fc6eedb;hpb=2d3c670c9128fdbcd6b9149d6f75dbfe199b4d41;p=dpdk.git diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h index 9d464d43f4..2988f4b26a 100644 --- a/drivers/common/mlx5/mlx5_common.h +++ b/drivers/common/mlx5/mlx5_common.h @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include "mlx5_prm.h" @@ -150,4 +152,13 @@ check_cqe(volatile struct mlx5_cqe *cqe, const uint16_t cqes_n, int mlx5_dev_to_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr); +#define MLX5_CLASS_ARG_NAME "class" + +enum mlx5_class { + MLX5_CLASS_NET, + MLX5_CLASS_VDPA, + MLX5_CLASS_INVALID, +}; +enum mlx5_class mlx5_class_get(struct rte_devargs *devargs); + #endif /* RTE_PMD_MLX5_COMMON_H_ */