git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ixgbevf: convert to use of PMD_REGISTER_DRIVER and fix linking
[dpdk.git]
/
lib
/
librte_pmd_ixgbe
/
ixgbe_ethdev.c
diff --git
a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c
b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c
index
b7f629e
..
c9b5fe4
100644
(file)
--- a/
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
+++ b/
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
@@
-970,8
+970,8
@@
rte_ixgbe_pmd_init(const char *name __rte_unused, const char *params __rte_unuse
* Invoked one at EAL init time.
* Register itself as the [Virtual Poll Mode] Driver of PCI niantic devices.
*/
* Invoked one at EAL init time.
* Register itself as the [Virtual Poll Mode] Driver of PCI niantic devices.
*/
-int
-rte_ixgbevf_pmd_init(
voi
d)
+
static
int
+rte_ixgbevf_pmd_init(
const char *name __rte_unused, const char *param __rte_unuse
d)
{
DEBUGFUNC("rte_ixgbevf_pmd_init");
{
DEBUGFUNC("rte_ixgbevf_pmd_init");
@@
-3067,4
+3067,10
@@
static struct rte_driver rte_ixgbe_driver = {
.init = rte_ixgbe_pmd_init,
};
.init = rte_ixgbe_pmd_init,
};
+static struct rte_driver rte_ixgbevf_driver = {
+ .type = PMD_PDEV,
+ .init = rte_ixgbevf_pmd_init,
+};
+
PMD_REGISTER_DRIVER(rte_ixgbe_driver);
PMD_REGISTER_DRIVER(rte_ixgbe_driver);
+PMD_REGISTER_DRIVER(rte_ixgbevf_driver);