]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/mlx5/mlx5_common.h
net/mlx5: select driver by class device argument
[dpdk.git] / drivers / common / mlx5 / mlx5_common.h
index 9d464d43f4a48cf01e53005d62cafbf67fc6eedb..2988f4b26a654e5f22023c6ae977509d6ce3ee2c 100644 (file)
@@ -11,6 +11,8 @@
 #include <rte_pci.h>
 #include <rte_atomic.h>
 #include <rte_log.h>
 #include <rte_pci.h>
 #include <rte_atomic.h>
 #include <rte_log.h>
+#include <rte_kvargs.h>
+#include <rte_devargs.h>
 
 #include "mlx5_prm.h"
 
 
 #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);
 
 
 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_ */
 #endif /* RTE_PMD_MLX5_COMMON_H_ */