From: Gaetan Rivet Date: Thu, 26 Oct 2017 10:06:07 +0000 (+0200) Subject: net/bonding: use local prefix namespace X-Git-Tag: spdx-start~1056 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3df742a9175a22df2e723927a1ec90efead240d9;p=dpdk.git 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 --- diff --git a/drivers/net/bonding/rte_eth_bond_args.c b/drivers/net/bonding/rte_eth_bond_args.c index c4dcefa05a..ebbcc5b07d 100644 --- a/drivers/net/bonding/rte_eth_bond_args.c +++ b/drivers/net/bonding/rte_eth_bond_args.c @@ -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;