Dear Ferruh, I apologize for the issues that have arisen during the process of splitting a complete driver into several small patches.
On 11/8/2024 12:11 PM, Howard Wang wrote: > Meson build infrastructure, r8169_ethdev minimal skeleton, header with > Realtek NIC device and vendor IDs. > > Signed-off-by: Howard Wang <howard_w...@realsil.com.cn> <...> ===> I referred to Atlantic’s approach for this, and as a matter of fact, his first commit message was done in this manner. I will think again about how it should be modified. net/atlantic: add PMD driver skeleton Makefile/meson build infrastructure, atl_ethdev minimal skeleton, header with aquantia aQtion NIC device and vendor IDs. Signed-off-by: Igor Russkikh <igor.russk...@aquantia.com> Signed-off-by: Pavel Belous <pavel.bel...@aquantia.com> What do you think to add macros for the PCI device IDs, naming them makes it easier to know which devices are supported. ===> Regarding the device ID, for 0x8125, the supported device is indeed called 8125. So, should we name a macro like DEVICE_ID_RTL8125 to replace it? Best regards, Howard Wang -----邮件原件----- 发件人: Ferruh Yigit <ferruh.yi...@amd.com> 发送时间: 2024年11月11日 8:15 收件人: 王颢 <howard_w...@realsil.com.cn>; dev@dpdk.org 抄送: pro_nic_d...@realtek.com 主题: Re: [PATCH v6 01/17] net/r8169: add PMD driver skeleton External mail. On 11/8/2024 12:11 PM, Howard Wang wrote: > Meson build infrastructure, r8169_ethdev minimal skeleton, header with > Realtek NIC device and vendor IDs. > > Signed-off-by: Howard Wang <howard_w...@realsil.com.cn> <...> > +/* > + * The set of PCI devices this driver supports */ static const > +struct rte_pci_id pci_id_r8169_map[] = { > + { RTE_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8125) }, > + { RTE_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8162) }, > + { RTE_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8126) }, > + { RTE_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x5000) }, > What do you think to add macros for the PCI device IDs, naming them makes it easier to know which devices are supported. <...> > + > +#define RTL_DEV_PRIVATE(eth_dev) \ > + ((struct rtl_adapter *)((eth_dev)->data->dev_private)) > + > This macro is only used a few patches later, what do you think to add this macro when used?