examples: fix use of ethdev internal device array
authorMarcin Zapolski <marcinx.a.zapolski@intel.com>
Wed, 17 Jul 2019 07:58:04 +0000 (09:58 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jul 2019 20:32:45 +0000 (22:32 +0200)
commit5c5c1f99a923986b5b2d2d34e874ca14ffabbcb0
treed3ed6248477e7a454ef794d6cf2f0a6ecd315369
parentabeef65dfdefbaedd14464dd07a8eb5f6a6ebacf
examples: fix use of ethdev internal device array

Modify l3fwd and related example apps to use locally defined port_conf
instead of global rte_eth_devices which is not a part of public API.
Apps should not be using internal DPDK data structures directly.

Fixes: 1ef9600b2d20 ("examples/l3fwd: convert to ethdev offloads API")
Fixes: ba8c103d2455 ("examples/l3fwd-acl: convert to new ethdev offloads API")
Fixes: 40df1d7a695d ("examples/l3fwd-power: convert to new ethdev offloads API")
Fixes: 43fc038262b8 ("examples/l3fwd-vf: convert to new ethdev offloads API")
Fixes: 373149c631fe ("examples/performance-thread: convert to new offloads API")
Cc: stable@dpdk.org
Signed-off-by: Marcin Zapolski <marcinx.a.zapolski@intel.com>
examples/l3fwd-acl/main.c
examples/l3fwd-power/main.c
examples/l3fwd-vf/main.c
examples/l3fwd/main.c
examples/performance-thread/l3fwd-thread/main.c