From: Marcin Zapolski Date: Mon, 22 Jul 2019 11:47:01 +0000 (+0200) Subject: examples/ip_frag: fix stale content of ethdev info X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f0f96b472ca72ede5cda905b38c0dd95d1948363;p=dpdk.git 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 Acked-by: Konstantin Ananyev --- diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c index edf87a1a11..03be0c12e9 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)