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 03FE6A04B1 for ; Wed, 4 Nov 2020 14:49:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6DF4C938; Wed, 4 Nov 2020 14:49:42 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1CE46C90E; Wed, 4 Nov 2020 14:49:37 +0100 (CET) IronPort-SDR: D21DohQs0fvRzmsggaj/85ce0Do4LM4Mc1FC+7zWf0VAo1Wy0X4QQdZbigIr2EpXsiMrDzvnw2 HJqEH692wWJw== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="169361458" X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="169361458" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 05:49:35 -0800 IronPort-SDR: U9d5DGF6CyS58AURO4xCtZhLlCzg4wrpwm6t2uIJB+cY+MX7fKwKFNb53UKQYjqcUKI8tGlJjf 16iGkBwdRbRg== X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="353836179" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.228.199]) ([10.213.228.199]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 05:49:33 -0800 From: Ferruh Yigit To: Ajit Khaparde , wangyunjian Cc: dpdk-dev , Thomas Monjalon , Andrew Rybchenko , Stephen Hemminger , "Lilijun (Jerry)" , xudingke , dpdk stable References: <1604308702-7744-1-git-send-email-wangyunjian@huawei.com> <1604458677-34696-1-git-send-email-wangyunjian@huawei.com> <6e98ccb8-624a-12d0-3484-ca88cf096ef0@intel.com> Message-ID: <48915627-9f7b-c03a-5341-66aa385e520c@intel.com> Date: Wed, 4 Nov 2020 13:49:31 +0000 MIME-Version: 1.0 In-Reply-To: <6e98ccb8-624a-12d0-3484-ca88cf096ef0@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v4] ethdev: fix data type for port id X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 11/4/2020 11:46 AM, Ferruh Yigit wrote: > On 11/4/2020 3:26 AM, Ajit Khaparde wrote: >> On Tue, Nov 3, 2020 at 6:58 PM wangyunjian wrote: >>> >>> From: Yunjian Wang >>> >>> The ethdev port id is 16 bits now. This patch fixes the data type >>> of the variable for 'pid', which changing from uint32_t to uint16_t. >>> >>> RTE_MAX_ETHPORTS is the maximum number of ports, which customized by >>> the user. To avoid 16-bit unsigned integer overflow, the valid value >>> of RTE_MAX_ETHPORTS should be set from 0 to UINT16_MAX, and it is >>> safer to cut one more port from space. >>> >>> So we use RTE_BUILD_BUG_ON() to ensure that RTE_MAX_ETHPORTS is less >>> to UINT16_MAX. >>> >>> Fixes: 5b7ba31148a8 ("ethdev: add port ownership") >>> Cc: stable@dpdk.org >>> >>> Signed-off-by: Yunjian Wang >> >> Acked-by: Ajit Khaparde >> > > Reviewed-by: Ferruh Yigit > Applied to dpdk-next-net/main, thanks.