| 2798 | } |
| 2799 | |
| 2800 | static int |
| 2801 | cpfl_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 | |
| 2820 | static int |
| 2821 | cpfl_pci_remove(struct rte_pci_device *pci_dev) |
nothing calls this directly
no test coverage detected