MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpfl_pci_probe

Function cpfl_pci_probe

dpdk/drivers/net/cpfl/cpfl_ethdev.c:2800–2818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2798}
2799
2800static int
2801cpfl_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
2802 struct rte_pci_device *pci_dev)
2803{
2804 struct cpfl_adapter_ext *adapter;
2805
2806 if (!cpfl_adapter_list_init) {
2807 rte_spinlock_init(&cpfl_adapter_lock);
2808 TAILQ_INIT(&cpfl_adapter_list);
2809 cpfl_adapter_list_init = true;
2810 }
2811
2812 adapter = cpfl_find_adapter_ext(pci_dev);
2813
2814 if (adapter == NULL)
2815 return cpfl_pci_probe_first(pci_dev);
2816 else
2817 return cpfl_pci_probe_again(pci_dev, adapter);
2818}
2819
2820static int
2821cpfl_pci_remove(struct rte_pci_device *pci_dev)

Callers

nothing calls this directly

Calls 4

rte_spinlock_initFunction · 0.85
cpfl_find_adapter_extFunction · 0.85
cpfl_pci_probe_firstFunction · 0.85
cpfl_pci_probe_againFunction · 0.85

Tested by

no test coverage detected