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 C7049A00C3; Mon, 15 Aug 2022 01:27:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E61942CF7; Mon, 15 Aug 2022 01:23:46 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id ACF3942B98 for ; Mon, 15 Aug 2022 01:23:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660519424; x=1692055424; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=k1Y5OiNkhtsfW78mqPEvlLbH/y6ic9bfcaoRkYgAaqQ=; b=clJRIIapTqYitKAVzzjaObdJJ7qVdleama/LNaGd6RCQKdf1AeXiGQ7O jaL5Q9KN+1rJS49e2fEZD9Qgb1J4cMZk7qBwBkITtIyyrAAyyn5YhsQdP YK58z5Xh9VVG8aWQyj9BLN3ykuPhV9CD41TTrllPTxNnDvdjjfs+pFQRG qMk8436Thb6Bg296O9uLy9SPAIGda+9MiXVYdcdYXMbCLnJs5mQEjS5KA XiopoA+ljpIw+to42IHPZ/SHdHLscvsJ/TwpB49WTp3BEQDlOl/B3iF+W d6nj39WKb1LXuVLszHGACcJlMLOe4EVBh2qXwcTJF/5fyS2uF9z4B5903 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="274914504" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="274914504" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 16:23:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="635283288" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by orsmga008.jf.intel.com with ESMTP; 14 Aug 2022 16:23:43 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , Grzegorz Nitka Subject: [PATCH v2 54/70] net/ice/base: add generic MAC with 3K signature segment Date: Mon, 15 Aug 2022 03:31:50 -0400 Message-Id: <20220815073206.2917968-55-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 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); } /** -- 2.31.1