Re: [PATCH v3 03/19] net/xsc: add PCI device probe and remove

2024-09-18 Thread WanRenyong
On 2024/9/18 15:28, David Marchand wrote: > On Wed, Sep 18, 2024 at 8:10 AM WanRenyong wrote: >> +static const struct rte_pci_id xsc_ethdev_pci_id_map[] = { >> + { RTE_PCI_DEVICE(XSC_PCI_VENDOR_ID, XSC_PCI_DEV_ID_MS) }, > You need to null terminate this array with something like: >

Re: [PATCH v3 03/19] net/xsc: add PCI device probe and remove

2024-09-18 Thread David Marchand
On Wed, Sep 18, 2024 at 8:10 AM WanRenyong wrote: > +static const struct rte_pci_id xsc_ethdev_pci_id_map[] = { > + { RTE_PCI_DEVICE(XSC_PCI_VENDOR_ID, XSC_PCI_DEV_ID_MS) }, You need to null terminate this array with something like: { .vendor_id = 0, /* sentinel */ }, Otherwise the