Re: [dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-23 Thread Thomas Monjalon
2016-12-23 11:27, Jan Blunck: > On Fri, Dec 23, 2016 at 9:30 AM, Thomas Monjalon > wrote: > > 2016-12-22 19:13, Jan Blunck: > >> On Thu, Dec 22, 2016 at 4:21 PM, Thomas Monjalon > >> wrote: > >> > 2016-12-21 16:09, Jan Blunck: > >> >> PCI drivers could use this helper instead of directly accessin

Re: [dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-23 Thread Jan Blunck
On Fri, Dec 23, 2016 at 9:30 AM, Thomas Monjalon wrote: > 2016-12-22 19:13, Jan Blunck: >> On Thu, Dec 22, 2016 at 4:21 PM, Thomas Monjalon >> wrote: >> > 2016-12-21 16:09, Jan Blunck: >> >> PCI drivers could use this helper instead of directly accessing fields of >> >> rte_eth_dev to map to rte_

Re: [dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-23 Thread Thomas Monjalon
2016-12-22 19:13, Jan Blunck: > On Thu, Dec 22, 2016 at 4:21 PM, Thomas Monjalon > wrote: > > 2016-12-21 16:09, Jan Blunck: > >> PCI drivers could use this helper instead of directly accessing fields of > >> rte_eth_dev to map to rte_pci_device. > > [...] > >> +/** > >> + * @internal > >> + * Help

Re: [dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-22 Thread Jan Blunck
On Thu, Dec 22, 2016 at 4:21 PM, Thomas Monjalon wrote: > 2016-12-21 16:09, Jan Blunck: >> PCI drivers could use this helper instead of directly accessing fields of >> rte_eth_dev to map to rte_pci_device. > [...] >> +/** >> + * @internal >> + * Helper for drivers that need to convert from rte_eth

Re: [dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-22 Thread Thomas Monjalon
2016-12-21 16:09, Jan Blunck: > PCI drivers could use this helper instead of directly accessing fields of > rte_eth_dev to map to rte_pci_device. [...] > +/** > + * @internal > + * Helper for drivers that need to convert from rte_eth_dev to > rte_pci_device. > + */ > +static inline struct rte_pci_

[dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-21 Thread Jan Blunck
PCI drivers could use this helper instead of directly accessing fields of rte_eth_dev to map to rte_pci_device. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- lib/librte_ether/rte_ethdev.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/li