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 DAE6DA00C3; Mon, 15 Aug 2022 01:08:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4937642C9C; Mon, 15 Aug 2022 01:04:34 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 57B5242C96 for ; Mon, 15 Aug 2022 01:04:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660518270; x=1692054270; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Hck/kQr8Bx5vNzimOHp+8l4NJPULFZvogS6AII3bDpE=; b=ObgRe8nTXemszbsyojQIG0oszAbWy8HW+F9Fz7FJuZyFZMeuIjq9Qmr+ fP8grtQcaORyzuCxH7fZiSYWOZR+r9j1O0lJpBflNOMbYR6sGtGEFvZd7 /esujE7SELYINkaiqGEVxR5R8Cb68ksLdMhq0BpSGz/gFnoT13POLWwBe LPNzVV4+e5gZAwPVy7qrivp14bs7tmGz/lxIuVna0j/SPfsFW8JYdcsR2 F6T59D+ShDR9Rm5PlGl8j7oHAaa0zW9zNXW9Vgy1HgfOOcScd9m5GBMcv YkyfiZhtJ7Vp6923OsFA6y4iB2A9OTN7mLn1nKp8KK6+/JnUDR7RhuDe1 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="293128782" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="293128782" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 16:04:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="934296849" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by fmsmga005.fm.intel.com with ESMTP; 14 Aug 2022 16:04:28 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , Paul Greenwalt Subject: [PATCH 51/70] net/ice/base: update PHY type high max index Date: Mon, 15 Aug 2022 03:12:47 -0400 Message-Id: <20220815071306.2910599-52-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220815071306.2910599-1-qi.z.zhang@intel.com> References: <20220815071306.2910599-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ICE_PHY_TYPE_HIGH_MAX_INDEX should be the maximum index value and not the length/number of ICE_PHY_TYPE_HIGH. Signed-off-by: Paul Greenwalt Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_adminq_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index dc72d70dfe..e1a6847157 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1398,7 +1398,7 @@ struct ice_aqc_get_phy_caps { #define ICE_PHY_TYPE_HIGH_100G_CAUI2 BIT_ULL(2) #define ICE_PHY_TYPE_HIGH_100G_AUI2_AOC_ACC BIT_ULL(3) #define ICE_PHY_TYPE_HIGH_100G_AUI2 BIT_ULL(4) -#define ICE_PHY_TYPE_HIGH_MAX_INDEX 5 +#define ICE_PHY_TYPE_HIGH_MAX_INDEX 4 struct ice_aqc_get_phy_caps_data { __le64 phy_type_low; /* Use values from ICE_PHY_TYPE_LOW_* */ -- 2.31.1