On 4/6/2021 10:30 AM, Jiawen Wu wrote:
Add device IDs for Wangxun 1Gb NICs, and register rte_ngbe_pmd.

Signed-off-by: Jiawen Wu <jiawe...@trustnetic.com>

<...>

+static struct rte_pci_driver rte_ngbe_pmd = {
+       .id_table = pci_id_ngbe_map,
+       .drv_flags = RTE_PCI_DRV_NEED_MAPPING |
+                    RTE_PCI_DRV_INTR_LSC,
+};
+
+RTE_PMD_REGISTER_PCI(net_ngbe, rte_ngbe_pmd);
+RTE_PMD_REGISTER_PCI_TABLE(net_ngbe, pci_id_ngbe_map);

At this stage driver->probe() will be called if matched device found, it is unlikely that the code will be run at this stage, but anyway to not leave the code in a state that it will for sure crash, can you add the 'probe()'/'remove()' functions here even if it is empty and just returns?

Reply via email to