From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D072F14EC for ; Wed, 7 Nov 2018 10:47:11 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Nov 2018 01:47:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,475,1534834800"; d="scan'208";a="90112144" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga008.jf.intel.com with ESMTP; 07 Nov 2018 01:47:10 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.20]) by IRSMSX106.ger.corp.intel.com ([169.254.8.163]) with mapi id 14.03.0415.000; Wed, 7 Nov 2018 09:47:09 +0000 From: "Pattan, Reshma" To: Li Han CC: "dev@dpdk.org" Thread-Topic: [PATCH v3] [dpdk-dev] app/proc-info: fix port mask parse issue Thread-Index: AQHUdmTpAO8yYC5yv0ys0tj+e2OMtaVEELFw Date: Wed, 7 Nov 2018 09:47:08 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F2A3D11E1@irsmsx110.ger.corp.intel.com> References: <1541571009-12396-1-git-send-email-han.li1@zte.com.cn> In-Reply-To: <1541571009-12396-1-git-send-email-han.li1@zte.com.cn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjI0ZWU5MmEtYzEwNy00NzJkLTk0MjktNmM5OWEyMjQyOGZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibTA5ak9aQkhhT3JXcHNORHM0R255VU9YeHE1ZDA2cFdmb29jc3F0eFBZZzhaQ0s4OWJSMnVGRGNOUUNac0liYiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] app/proc-info: fix port mask parse issue 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: , X-List-Received-Date: Wed, 07 Nov 2018 09:47:12 -0000 > -----Original Message----- > From: Li Han [mailto:han.li1@zte.com.cn] > Sent: Wednesday, November 7, 2018 6:10 AM > To: Pattan, Reshma > Cc: dev@dpdk.org; Li Han > Subject: [PATCH v3] [dpdk-dev] app/proc-info: fix port mask parse issue >=20 > parse_portmask return type is int,but global variable "enabled_port_mask"= type > is uint32_t.so in proc_info_parse_args function,when parse_portmask retur= n - > 1,"enabled_port_mask" will get a huge value and "if (enabled_port_mask = =3D=3D 0)" > will never happen. >=20 > Fixes: 22561383ea17 ("app: replace dump_cfg by proc_info") > Signed-off-by: Li Han Acked-by: Reshma Pattan