examples/ip_frag: fix stale content of ethdev info
authorMarcin Zapolski <marcinx.a.zapolski@intel.com>
Mon, 22 Jul 2019 11:47:01 +0000 (13:47 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Jul 2019 17:10:31 +0000 (19:10 +0200)
commitf0f96b472ca72ede5cda905b38c0dd95d1948363
tree442cde6a64fed546f2363ca2c1f6498dc8ac53c0
parentdebacba0297fbe214b4185a9791e6a9fdf6642ba
examples/ip_frag: fix stale content of ethdev info

The eth_dev_info was used with content that was obsolete. Added update
of struct content prior to use.

Fixes: 6b7780bfebe4 ("examples/ip_frag: fix use of ethdev internal device array")
Cc: stable@dpdk.org
Signed-off-by: Marcin Zapolski <marcinx.a.zapolski@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/ip_fragmentation/main.c