From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 404AAA0524; Tue, 13 Apr 2021 12:36:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B18C7160E1F; Tue, 13 Apr 2021 12:36:23 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 12711160DFA; Tue, 13 Apr 2021 12:36:21 +0200 (CEST) IronPort-SDR: qQ2wY+Rpgg7bkziKE+fiGhs85vrAPWK2d+DGuWeOUFt0Eh2ApU8NpEVcmzFweqmr6pO3AKvs08 KtQD77eEyrGw== X-IronPort-AV: E=McAfee;i="6200,9189,9952"; a="255707851" X-IronPort-AV: E=Sophos;i="5.82,219,1613462400"; d="scan'208";a="255707851" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 03:36:20 -0700 IronPort-SDR: 5vdvYayA1gl3zoaOtZ44h6lpvFQuHGcxbuq0FWipruCRuEWZsEku2WRYnurKGB2VYWdrZxEJY3 7s+pp/N8nOrg== X-IronPort-AV: E=Sophos;i="5.82,219,1613462400"; d="scan'208";a="460534629" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.204.251]) ([10.213.204.251]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 03:36:19 -0700 To: John Daley , arybchenko@solarflare.com Cc: dev@dpdk.org, stable@dpdk.org, Hyong Youb Kim References: <20210412190338.5248-1-johndale@cisco.com> <20210412205021.22378-1-johndale@cisco.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <1c84879d-a593-9cd1-5cab-613cff8d15ce@intel.com> Date: Tue, 13 Apr 2021 11:36:15 +0100 MIME-Version: 1.0 In-Reply-To: <20210412205021.22378-1-johndale@cisco.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1] net/enic: fix completion pointer calculation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On 4/12/2021 9:50 PM, John Daley wrote: > The completion queue index could be implicitly extended past its > uint16_t size when multiplied by the size of the descriptor. While > this should not be a problem, coverity flags it. Do the extension > explicitly by casting the index to uintptr_t. > > Coverity issue: 161317 > Fixes: 8b428cb5a92e ("net/enic: use 64B completion queue entries if available") > Cc: stable@dpdk.org > > Signed-off-by: John Daley > Reviewed-by: Hyong Youb Kim Applied to dpdk-next-net/main, thanks.