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 D87E6A00C3; Mon, 15 Aug 2022 01:22:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F3A742B99; Mon, 15 Aug 2022 01:22:27 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id EF37C42B8D; Mon, 15 Aug 2022 01:22:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660519346; x=1692055346; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=64xA7+VNuyTM7eX9P7QUV/A8VVlP4NFQC1LVAcb+cVE=; b=T0yV/8Qu5HYLlys03D219SkrgKmXFDu+5iaRF1g+Y0eVfdD87igj643t ZnRC3w1xlWL1oc5qC3wnUhZ2sSwSZjKyl2qOiTzTuJy+xaXkjJO1YnuIp kSLfqFsTYmqQ3toJfy4TittNXSGfRZnhfKcSamuskpm96Wt3HQ08xArP7 TD8ii+IN1+4ZYWsC/ihRnWbCdvznYc0FKEuUSWshzqvKQbNeDwXhHtAMs rRtAqgVkusEywZj6/uY8tQkADLJfSJ575Qic7Lk+ezVtOHtjGpAOo8B4O /Wzu/HBlkzyku7aEHP9QCuDMk3Z3WQ4YG7J6un9w/SnPh8rVpmy2UwQ5T w==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="291857923" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="291857923" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 16:22:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="635283007" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by orsmga008.jf.intel.com with ESMTP; 14 Aug 2022 16:22:24 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , stable@dpdk.org, Anirudh Venkataramanan Subject: [PATCH v2 07/70] net/ice/base: fix 100M speed Date: Mon, 15 Aug 2022 03:31:03 -0400 Message-Id: <20220815073206.2917968-8-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220815073206.2917968-1-qi.z.zhang@intel.com> References: <20220815071306.2910599-1-qi.z.zhang@intel.com> <20220815073206.2917968-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 Couple of 10GBase-T devices don't support advertising 100M speed. For these devices, ice_is_100m_speed_supported should return false. Meanwhile add device that supports 100M speed. Fixes: 486d29fda54c ("net/ice/base: add dedicate MAC type for E810") Cc: stable@dpdk.org Signed-off-by: Anirudh Venkataramanan Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index f9640d9403..e22600c46d 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -3113,12 +3113,10 @@ ice_aq_set_port_params(struct ice_port_info *pi, u16 bad_frame_vsi, bool ice_is_100m_speed_supported(struct ice_hw *hw) { switch (hw->device_id) { - case ICE_DEV_ID_E822C_10G_BASE_T: case ICE_DEV_ID_E822C_SGMII: - case ICE_DEV_ID_E822L_10G_BASE_T: case ICE_DEV_ID_E822L_SGMII: - case ICE_DEV_ID_E823L_10G_BASE_T: case ICE_DEV_ID_E823L_1GBE: + case ICE_DEV_ID_E823C_SGMII: return true; default: return false; -- 2.31.1