> -----Original Message-----
> From: Gributs, Paulis <paulis.grib...@intel.com>
> Sent: Thursday, July 15, 2021 21:20
> To: Li, Xiaoyun <xiaoyun...@intel.com>; Yigit, Ferruh
> <ferruh.yi...@intel.com>;
> Burakov, Anatoly <anatoly.bura...@intel.com>
> Cc: dev@dpdk.org; Gributs, Paulis <paulis.grib...@intel.com>
> Subject: [PATCH] app/testpmd: remove most uses of rte_eth_devices
>
> 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 no function call exists
> to
> get all mac addresses of a given port.
>
> Signed-off-by: Paulis Gributs <paulis.grib...@intel.com>
> ---
> app/test-pmd/testpmd.c | 80 +++++++++++++++++++++++++++++-------------
> app/test-pmd/txonly.c | 18 ++++++++--
> 2 files changed, 71 insertions(+), 27 deletions(-)
>
Acked-by: Xiaoyun Li <xiaoyun...@intel.com>