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
ixgbe: 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
e78c208
..
b7f629e
100644
(file)
--- a/
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
+++ b/
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
@@
-58,6
+58,7
@@
#include <rte_ethdev.h>
#include <rte_atomic.h>
#include <rte_malloc.h>
#include <rte_ethdev.h>
#include <rte_atomic.h>
#include <rte_malloc.h>
+#include <rte_dev.h>
#include "ixgbe_logs.h"
#include "ixgbe/ixgbe_api.h"
#include "ixgbe_logs.h"
#include "ixgbe/ixgbe_api.h"
@@
-955,8
+956,8
@@
static struct eth_driver rte_ixgbevf_pmd = {
* Invoked once at EAL init time.
* Register itself as the [Poll Mode] Driver of PCI IXGBE devices.
*/
* Invoked once at EAL init time.
* Register itself as the [Poll Mode] Driver of PCI IXGBE devices.
*/
-int
-rte_ixgbe_pmd_init(
voi
d)
+
static
int
+rte_ixgbe_pmd_init(
const char *name __rte_unused, const char *params __rte_unuse
d)
{
PMD_INIT_FUNC_TRACE();
{
PMD_INIT_FUNC_TRACE();
@@
-3060,3
+3061,10
@@
ixgbe_mirror_rule_reset(struct rte_eth_dev *dev, uint8_t rule_id)
return 0;
}
return 0;
}
+
+static struct rte_driver rte_ixgbe_driver = {
+ .type = PMD_PDEV,
+ .init = rte_ixgbe_pmd_init,
+};
+
+PMD_REGISTER_DRIVER(rte_ixgbe_driver);