From: Gaetan Rivet <gaetan.rivet@6wind.com>
To: dev@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>
Subject: [dpdk-dev] [PATCH v2 4/4] net/mlx5: net bus support
Date: Thu, 8 Jun 2017 02:01:01 +0200 [thread overview]
Message-ID: <d22e97667fba4292919553bb5d08ca53998ed880.1496877142.git.gaetan.rivet@6wind.com> (raw)
In-Reply-To: <cover.1496877142.git.gaetan.rivet@6wind.com>
In-Reply-To: <cover.1496877142.git.gaetan.rivet@6wind.com>
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---
drivers/net/mlx5/mlx5.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index bcb2c1b..0ba13e9 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
@@ -899,3 +900,11 @@ 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 = {
+ .driver = {
+ .name = MLX5_DRIVER_NAME,
+ },
+ .kmod = "mlx5_core",
+};
+RTE_PMD_REGISTER_NET(mlx5, mlx5_net_driver);
--
2.1.4
next prev parent reply other threads:[~2017-06-08 0:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 10:44 [dpdk-dev] [PATCH 0/3] Introduce net bus Gaetan Rivet
2017-06-01 10:44 ` [dpdk-dev] [PATCH 1/3] bus/net: introduce " Gaetan Rivet
2017-06-01 10:44 ` [dpdk-dev] [PATCH 2/3] net/mlx4: net bus support Gaetan Rivet
2017-06-01 10:44 ` [dpdk-dev] [PATCH 3/3] net/mlx5: " Gaetan Rivet
2017-06-08 0:00 ` [dpdk-dev] [PATCH v2 0/4] Introduce net bus Gaetan Rivet
2017-06-08 0:00 ` [dpdk-dev] [PATCH v2 1/4] bus/net: introduce " Gaetan Rivet
2017-06-08 0:00 ` [dpdk-dev] [PATCH v2 2/4] bus/net: implement hotplug bus operations Gaetan Rivet
2017-06-08 0:01 ` [dpdk-dev] [PATCH v2 3/4] net/mlx4: net bus support Gaetan Rivet
2017-06-08 0:01 ` Gaetan Rivet [this message]
2017-06-08 7:31 ` [dpdk-dev] [PATCH v2 0/4] Introduce net bus Thomas Monjalon
2017-06-08 20:31 ` Gaëtan Rivet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d22e97667fba4292919553bb5d08ca53998ed880.1496877142.git.gaetan.rivet@6wind.com \
--to=gaetan.rivet@6wind.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).