[dpdk-dev] [PATCH 3/3] net/mlx5: net bus support
Gaetan Rivet
gaetan.rivet at 6wind.com
Thu Jun 1 12:44:33 CEST 2017
Signed-off-by: Gaetan Rivet <gaetan.rivet at 6wind.com>
---
drivers/net/mlx5/mlx5.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index fc99c0d..4e33703 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -58,6 +58,7 @@
#include <rte_ethdev.h>
#include <rte_ethdev_pci.h>
#include <rte_pci.h>
+#include <rte_bus_net.h>
#include <rte_common.h>
#include <rte_kvargs.h>
#ifdef PEDANTIC
@@ -898,3 +899,12 @@ rte_mlx5_pmd_init(void)
RTE_PMD_EXPORT_NAME(net_mlx5, __COUNTER__);
RTE_PMD_REGISTER_PCI_TABLE(net_mlx5, mlx5_pci_id_map);
RTE_PMD_REGISTER_KMOD_DEP(net_mlx5, "* ib_uverbs & mlx5_core & mlx5_ib");
+
+static struct rte_net_driver mlx5_net_driver = {
+ RTE_BUS_NET_PCI_HEADER
+ .driver = {
+ .name = MLX5_DRIVER_NAME,
+ },
+ .kmod = "mlx5_core",
+};
+RTE_PMD_REGISTER_NET(mlx5, mlx5_net_driver);
--
2.1.4
More information about the dev
mailing list