examples/ip_frag: fix use of ethdev internal device array
authorMarcin Zapolski <marcinx.a.zapolski@intel.com>
Wed, 17 Jul 2019 07:58:05 +0000 (09:58 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jul 2019 21:05:13 +0000 (23:05 +0200)
commit6b7780bfebe4de743c5edbe7a3c7f9fa817789ad
tree73e36335154c86f517c7f6c24b5de578c0070322
parent0109baf1964ca047646d49708263b2f6cbd63571
examples/ip_frag: fix use of ethdev internal device array

Modify ip_fragmentation example app to use rte_eth_info_get instead
of global rte_eth_devices structure.
Apps should not be using internal DPDK data structures directly.

Fixes: 9758b956dcf4 ("examples/ip_fragmentation: fix Tx queues init")
Cc: stable@dpdk.org
Signed-off-by: Marcin Zapolski <marcinx.a.zapolski@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/ip_fragmentation/main.c