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
net: align ethdev and eal driver names
[dpdk.git]
/
drivers
/
net
/
bonding
/
rte_eth_bond_api.c
diff --git
a/drivers/net/bonding/rte_eth_bond_api.c
b/drivers/net/bonding/rte_eth_bond_api.c
index
19347d8
..
f552d96
100644
(file)
--- a/
drivers/net/bonding/rte_eth_bond_api.c
+++ b/
drivers/net/bonding/rte_eth_bond_api.c
@@
-37,6
+37,7
@@
#include <rte_malloc.h>
#include <rte_ethdev.h>
#include <rte_tcp.h>
#include <rte_malloc.h>
#include <rte_ethdev.h>
#include <rte_tcp.h>
+#include <rte_vdev.h>
#include "rte_eth_bond.h"
#include "rte_eth_bond_private.h"
#include "rte_eth_bond.h"
#include "rte_eth_bond_private.h"
@@
-44,8
+45,6
@@
#define DEFAULT_POLLING_INTERVAL_10_MS (10)
#define DEFAULT_POLLING_INTERVAL_10_MS (10)
-const char pmd_bond_driver_name[] = "rte_bond_pmd";
-
int
check_for_bonded_ethdev(const struct rte_eth_dev *eth_dev)
{
int
check_for_bonded_ethdev(const struct rte_eth_dev *eth_dev)
{
@@
-54,7
+53,7
@@
check_for_bonded_ethdev(const struct rte_eth_dev *eth_dev)
return -1;
/* return 0 if driver name matches */
return -1;
/* return 0 if driver name matches */
- return eth_dev->data->drv_name != pmd_bond_dr
iver_
name;
+ return eth_dev->data->drv_name != pmd_bond_dr
v.driver.
name;
}
int
}
int
@@
-212,7
+211,7
@@
rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id)
RTE_ETH_DEV_DETACHABLE;
eth_dev->driver = NULL;
eth_dev->data->kdrv = RTE_KDRV_NONE;
RTE_ETH_DEV_DETACHABLE;
eth_dev->driver = NULL;
eth_dev->data->kdrv = RTE_KDRV_NONE;
- eth_dev->data->drv_name = pmd_bond_dr
iver_
name;
+ eth_dev->data->drv_name = pmd_bond_dr
v.driver.
name;
eth_dev->data->numa_node = socket_id;
rte_spinlock_init(&internals->lock);
eth_dev->data->numa_node = socket_id;
rte_spinlock_init(&internals->lock);