summaryrefslogtreecommitdiff
path: root/examples/ip_fragmentation
diff options
context:
space:
mode:
authorMarcin Zapolski <marcinx.a.zapolski@intel.com>2019-07-22 13:47:01 +0200
committerThomas Monjalon <thomas@monjalon.net>2019-07-22 19:10:31 +0200
commitf0f96b472ca72ede5cda905b38c0dd95d1948363 (patch)
tree442cde6a64fed546f2363ca2c1f6498dc8ac53c0 /examples/ip_fragmentation
parentdebacba0297fbe214b4185a9791e6a9fdf6642ba (diff)
downloaddpdk-f0f96b472ca72ede5cda905b38c0dd95d1948363.zip
dpdk-f0f96b472ca72ede5cda905b38c0dd95d1948363.tar.gz
dpdk-f0f96b472ca72ede5cda905b38c0dd95d1948363.tar.xz
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>
Diffstat (limited to 'examples/ip_fragmentation')
-rw-r--r--examples/ip_fragmentation/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
index edf87a1..03be0c1 100644
--- a/examples/ip_fragmentation/main.c
+++ b/examples/ip_fragmentation/main.c
@@ -987,6 +987,7 @@ main(int argc, char **argv)
printf("\n");
/* init one TX queue per couple (lcore,port) */
+ rte_eth_dev_info_get(portid, &dev_info);
queueid = 0;
for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {
if (rte_lcore_is_enabled(lcore_id) == 0)