[dpdk-dev] [PATCH v3 19/22] net/ena: make ethdev references smp safe

2021-05-06 Thread Michal Krawczyk
From: Stanislaw Kardach rte_pci_device and rte_eth_dev are process-local structures. Therefore ena_adapter::pdev and ena_adapter::rte_dev cannot be used universally. Switch this to extracting those structures via rte_eth_devices indexing and remove pdev since it's not used outside of init. Signe

Re: [dpdk-dev] [PATCH v3 19/22] net/ena: make ethdev references smp safe

2021-05-07 Thread Ferruh Yigit
On 5/6/2021 3:25 PM, Michal Krawczyk wrote: > From: Stanislaw Kardach > > rte_pci_device and rte_eth_dev are process-local structures. Therefore > ena_adapter::pdev and ena_adapter::rte_dev cannot be used universally. > Switch this to extracting those structures via rte_eth_devices indexing > and

Re: [dpdk-dev] [PATCH v3 19/22] net/ena: make ethdev references smp safe

2021-05-09 Thread Michał Krawczyk
pt., 7 maj 2021 o 18:49 Ferruh Yigit napisał(a): > > On 5/6/2021 3:25 PM, Michal Krawczyk wrote: > > From: Stanislaw Kardach > > > > rte_pci_device and rte_eth_dev are process-local structures. Therefore > > ena_adapter::pdev and ena_adapter::rte_dev cannot be used universally. > > Switch this to