From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id E0F6C4CBD for ; Mon, 5 Nov 2018 16:27:41 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Nov 2018 07:27:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,468,1534834800"; d="scan'208";a="103556143" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga004.fm.intel.com with ESMTP; 05 Nov 2018 07:27:40 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.20]) by IRSMSX152.ger.corp.intel.com ([169.254.6.64]) with mapi id 14.03.0415.000; Mon, 5 Nov 2018 15:27:10 +0000 From: "Pattan, Reshma" To: Li Han , "Tahhan, Maryam" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] app/proc-info:fix port mask parse bug Thread-Index: AQHUVjPrp+myALd5QUyfomgjG9/w96VBikIQ Date: Mon, 5 Nov 2018 15:27:09 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F2A3D08EC@irsmsx110.ger.corp.intel.com> References: <1538031669-9305-1-git-send-email-han.li1@zte.com.cn> In-Reply-To: <1538031669-9305-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWEyYmJjNDAtN2NlNy00MmE1LWI2ZGYtZmNjN2EwNTNhODhhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQmVwZ0Fpbmg0c2ZWR0t2MzBsOWxJWXYwNU9GMU9YaFBSeE9SQTBhWjhmMjZhNDlqT0dFMVRuK3JWZ3NQVTJRVSJ9 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] app/proc-info:fix port mask parse bug 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: Mon, 05 Nov 2018 15:27:42 -0000 Hi, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Li Han To avoid typecast below , please use uint64_t for enabled_port_mask.=20 So change below function return type to uint64_t > -static int > +static uint32_t > parse_portmask(const char *portmask) > { Declare pm to be of type uint64_t. > + return (uint32_t)pm; You can remove above typecast after change to uint64_t. Thanks, Reshma