2016-12-22 16:26, Thomas Monjalon: > I think it would easier to read if RTE_PCI_DEV macro was introduced at > the beginning with container_of macro and used in the "localize patches". > So the patches > [PATCH v4 19/23] drivers: Replace per-PMD macros with > rte_eth_dev_to_pci() helper > and > [PATCH v4 20/23] drivers: Use rte_eth_dev_to_pci() helper > could be squashed in the "localize patches".
After a private discussion, I've understood that my proposal was stupid :) RTE_PCI_DEV is used when the ethdev field is converted from pci_dev to device.