From patchwork Mon Aug 15 07:12:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zhang X-Patchwork-Id: 115011 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DE91EA00C3; Mon, 15 Aug 2022 01:08:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65F8642CBB; Mon, 15 Aug 2022 01:04:37 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 0D13D42C90 for ; Mon, 15 Aug 2022 01:04:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660518274; x=1692054274; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=k1Y5OiNkhtsfW78mqPEvlLbH/y6ic9bfcaoRkYgAaqQ=; b=a6OYnESjfI4U/goPjg395OpmQexk9avvDFcrEOHvEkgSgPr+dfEHUZtu l4aFOKAQbvk3b+TD7n6oo5aZyWipGdfk0sJWHLyiMsSBjvmF5pEVveGeR 6AcJmH1Nb/5/E/h9S+dDLZx9jBCO0Rlbotvs46SW0Togb5OdkiXgqwYq2 HT9TTF/+NBS36QQIrDMpgsVGPlV5g2ZjQ4j4qDd1xEKd4dZGOHiOXE6bo EqLS0cIDc8nlkf2Wc3CkDDg8XC/9CqGhehIFM5bjqgMvpxoDdJje2UJcM jlf36QXIURjefhC+/vwPSnGGSQH9kPXKkp1GOog/Vl4TyzLbe6v/9gPNg Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="293128790" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="293128790" 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:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="934296869" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by fmsmga005.fm.intel.com with ESMTP; 14 Aug 2022 16:04:32 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , Grzegorz Nitka Subject: [PATCH 54/70] net/ice/base: add generic MAC with 3K signature segment Date: Mon, 15 Aug 2022 03:12:50 -0400 Message-Id: <20220815071306.2910599-55-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 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 Define new type id ICE_MAC_GENERIC_3k in ice_mac_type enum, to distinguish devices which use RSA-3K/SHA-384 segment signature type. Use 3k signinig type for E824S device. Signed-off-by: Grzegorz Nitka Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index c3024dd0b7..44592d20bf 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -192,7 +192,8 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw) */ bool ice_is_generic_mac(struct ice_hw *hw) { - return hw->mac_type == ICE_MAC_GENERIC; + return (hw->mac_type == ICE_MAC_GENERIC || + hw->mac_type == ICE_MAC_GENERIC_3K); } /**