[dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-15 Thread Paulis Gributs
This patch removes most uses of the global variable rte_eth_devices from testpmd. This was done to avoid using the object directly which applications should not do. Most uses have been replaced with standard function calls, however the use of it in the show_macs function could not be replaced as n

Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-15 Thread Ferruh Yigit
On 7/15/2021 3:20 PM, Paulis Gributs wrote: > This patch removes most uses of the global variable rte_eth_devices > from testpmd. This was done to avoid using the object directly which > applications should not do. > > Most uses have been replaced with standard function calls, however > the use of

Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-15 Thread Li, Xiaoyun
> -Original Message- > From: Gributs, Paulis > Sent: Thursday, July 15, 2021 21:20 > To: Li, Xiaoyun ; Yigit, Ferruh > ; > Burakov, Anatoly > Cc: dev@dpdk.org; Gributs, Paulis > Subject: [PATCH] app/testpmd: remove most uses of rte_eth_devices > > This patch removes most uses of the

Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-19 Thread Ferruh Yigit
On 7/15/2021 2:20 PM, Paulis Gributs wrote: > This patch removes most uses of the global variable rte_eth_devices > from testpmd. This was done to avoid using the object directly which > applications should not do. > > Most uses have been replaced with standard function calls, however > the use of

Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-20 Thread Thomas Monjalon
19/07/2021 18:42, Ferruh Yigit: > On 7/15/2021 2:20 PM, Paulis Gributs wrote: > > This patch removes most uses of the global variable rte_eth_devices > > from testpmd. This was done to avoid using the object directly which > > applications should not do. > > > > Most uses have been replaced with s

Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-20 Thread Ferruh Yigit
On 7/20/2021 11:35 AM, Thomas Monjalon wrote: > 19/07/2021 18:42, Ferruh Yigit: >> On 7/15/2021 2:20 PM, Paulis Gributs wrote: >>> This patch removes most uses of the global variable rte_eth_devices >>> from testpmd. This was done to avoid using the object directly which >>> applications should not

Re: [dpdk-dev] [PATCH] app/testpmd: remove most uses of rte_eth_devices

2021-07-24 Thread Thomas Monjalon
15/07/2021 16:52, Ferruh Yigit: > On 7/15/2021 3:20 PM, Paulis Gributs wrote: > > This patch removes most uses of the global variable rte_eth_devices > > from testpmd. This was done to avoid using the object directly which > > applications should not do. > > > > Most uses have been replaced with s