From patchwork Mon Jul 22 11:47:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Zapolski X-Patchwork-Id: 56870 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3A3061BF3B; Mon, 22 Jul 2019 13:52:19 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 06A9D1BF26 for ; Mon, 22 Jul 2019 13:52:17 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2019 04:50:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,294,1559545200"; d="scan'208";a="188592271" Received: from marcinzx-mobl.ger.corp.intel.com ([10.103.104.99]) by fmsmga001.fm.intel.com with ESMTP; 22 Jul 2019 04:50:13 -0700 From: Marcin Zapolski To: dev@dpdk.org Cc: bruce.richardson@intel.com, Marcin Zapolski Date: Mon, 22 Jul 2019 13:47:01 +0200 Message-Id: <20190722114701.1001-1-marcinx.a.zapolski@intel.com> X-Mailer: git-send-email 2.22.0.windows.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] examples/ip_frag: fix stale content of eth info struct X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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") Signed-off-by: Marcin Zapolski Acked-by: Konstantin Ananyev --- examples/ip_fragmentation/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c index edf87a1a1..03be0c12e 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)