From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 41B49A046B for ; Mon, 22 Jul 2019 14:21:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 084301BEF8; Mon, 22 Jul 2019 14:21:21 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 32ED81BEF7 for ; Mon, 22 Jul 2019 14:21:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2019 05:21:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,295,1559545200"; d="scan'208";a="320668801" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by orsmga004.jf.intel.com with ESMTP; 22 Jul 2019 05:21:17 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.164]) by IRSMSX108.ger.corp.intel.com ([169.254.11.229]) with mapi id 14.03.0439.000; Mon, 22 Jul 2019 13:21:17 +0100 From: "Ananyev, Konstantin" To: "Zapolski, MarcinX A" , "dev@dpdk.org" CC: "Richardson, Bruce" , "Zapolski, MarcinX A" Thread-Topic: [dpdk-dev] [PATCH] examples/ip_frag: fix stale content of eth info struct Thread-Index: AQHVQIP3s/MQxWJayUi0JjY7D3OV4abWjlSw Date: Mon, 22 Jul 2019 12:21:16 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580168A58C9C@irsmsx105.ger.corp.intel.com> References: <20190722114701.1001-1-marcinx.a.zapolski@intel.com> In-Reply-To: <20190722114701.1001-1-marcinx.a.zapolski@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjc1ODg2MDctYjcyMC00ZmIxLTlmOTUtMmJmMDVhYTU2MzIyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTlZjcG9abUpicHQ0M1FRM2gzNGVDeU1UTkhMN09VaWZTZThIUnhFTkI3VkpnQWFXSWE5ZTlpanZZRzJqMjhJQyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Marcin Zapolski > Sent: Monday, July 22, 2019 12:47 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; Zapolski, MarcinX A <= marcinx.a.zapolski@intel.com> > Subject: [dpdk-dev] [PATCH] examples/ip_frag: fix stale content of eth in= fo struct >=20 > The eth_dev_info was used with content that was obsolete. Added update > of struct content prior to use. >=20 > Fixes: 6b7780bfebe4 ("examples/ip_frag: fix use of ethdev internal device= array") >=20 > Signed-off-by: Marcin Zapolski > --- > examples/ip_fragmentation/main.c | 1 + > 1 file changed, 1 insertion(+) >=20 > 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"); >=20 > /* init one TX queue per couple (lcore,port) */ > + rte_eth_dev_info_get(portid, &dev_info); > queueid =3D 0; > for (lcore_id =3D 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { > if (rte_lcore_is_enabled(lcore_id) =3D=3D 0) > -- Acked-by: Konstantin Ananyev > 2.17.1