net/bonding: use local prefix namespace
The current name conflicts with the librte_pci naming convention. Additionally, it is easier to use gdb when having prefixed even private functions. Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
This commit is contained in:
parent
da5c269bd7
commit
3df742a917
@ -89,7 +89,7 @@ find_port_id_by_dev_name(const char *name)
|
||||
}
|
||||
|
||||
static inline int
|
||||
pci_addr_cmp(const struct rte_device *dev, const void *_pci_addr)
|
||||
bond_pci_addr_cmp(const struct rte_device *dev, const void *_pci_addr)
|
||||
{
|
||||
struct rte_pci_device *pdev;
|
||||
const struct rte_pci_addr *paddr = _pci_addr;
|
||||
@ -118,7 +118,7 @@ parse_port_id(const char *port_str)
|
||||
|
||||
/* try parsing as pci address, physical devices */
|
||||
if (pci_bus->parse(port_str, &dev_addr) == 0) {
|
||||
dev = pci_bus->find_device(NULL, pci_addr_cmp, &dev_addr);
|
||||
dev = pci_bus->find_device(NULL, bond_pci_addr_cmp, &dev_addr);
|
||||
if (dev == NULL) {
|
||||
RTE_LOG(ERR, PMD, "unable to find PCI device\n");
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user