bus/pci: do not reference devargs list
This list should not be used by drivers. Use the public API instead. Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
parent
1f6d16ee63
commit
7765f0f408
@ -37,6 +37,7 @@ EXPORT_MAP := rte_bus_pci_version.map
|
||||
|
||||
CFLAGS := -I$(SRCDIR) $(CFLAGS)
|
||||
CFLAGS += -O3 $(WERROR_FLAGS)
|
||||
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
||||
|
||||
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),)
|
||||
SYSTEM := linux
|
||||
|
@ -45,12 +45,8 @@ static struct rte_devargs *pci_devargs_lookup(struct rte_pci_device *dev)
|
||||
{
|
||||
struct rte_devargs *devargs;
|
||||
struct rte_pci_addr addr;
|
||||
struct rte_bus *pbus;
|
||||
|
||||
pbus = rte_bus_find_by_name("pci");
|
||||
TAILQ_FOREACH(devargs, &devargs_list, next) {
|
||||
if (devargs->bus != pbus)
|
||||
continue;
|
||||
RTE_EAL_DEVARGS_FOREACH("pci", devargs) {
|
||||
devargs->bus->parse(devargs->name, &addr);
|
||||
if (!rte_pci_addr_cmp(&dev->addr, &addr))
|
||||
return devargs;
|
||||
|
Loading…
Reference in New Issue
Block a user