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 A841E454EF; Tue, 25 Jun 2024 13:26:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11CBB432D2; Tue, 25 Jun 2024 13:18:56 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 2BDEB427DE for ; Tue, 25 Jun 2024 13:17:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314261; x=1750850261; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hM4/B7mC1jY9T7xbDZKxEnm9+eWlp7ScjPfzN7FYexI=; b=Zxw86fpphQQCT+P+h8eOzw6XCxEqDH/ZZeKcKzNgtUyt4WFwn+mDpz7d aoJetQ1e69kSaV4qxifvEuU1fCF0yzVzeyCzvyPhJR8jrl3AF+3RwsaBM E38s73qDLhsrlHpMiUL8fFX2lbXsOuoQn0d4QCXPoUyRFIscyUOa3qMFB 2ERjo52AccHc6Y0+0ABuaGRrLTARvqJCEMNxSlIcn9ZvNFnrUYxP388rD 7gTzqv6VNAk/+T+3BLo/06Z/4EQ8n7Pbgmpg1S0Qmg3tCbuATexaC2Zt9 LwIczCXIz6EVRrpq6jHkxn4zPZS7wws37h0ZF8NrOqUyl4dqQL8UDIrl7 w==; X-CSE-ConnectionGUID: arci7kQIT3u9sh6AgUaoSw== X-CSE-MsgGUID: 8EvUC9ERQL23XSTByl9/8w== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080522" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080522" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:17:38 -0700 X-CSE-ConnectionGUID: geZxzIetRUGimA+F4z8cBA== X-CSE-MsgGUID: eV5wObbGQp2gKKynlYwkWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719639" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:17:38 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Sergey Temerkhanov , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 098/129] net/ice/base: support E830 in DDP pkg handling Date: Tue, 25 Jun 2024 12:13:43 +0100 Message-ID: <4c745bcc9932aad0d920d5304191be0c7e8cb5b2.1719313663.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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 From: Sergey Temerkhanov Add support for E830 DDP packages in the DDP package handling code. Signed-off-by: Sergey Temerkhanov Signed-off-by: Anatoly Burakov --- drivers/net/ice/base/ice_ddp.c | 6 ++++++ drivers/net/ice/base/ice_ddp.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/net/ice/base/ice_ddp.c b/drivers/net/ice/base/ice_ddp.c index 3271d4572d..d5d81db949 100644 --- a/drivers/net/ice/base/ice_ddp.c +++ b/drivers/net/ice/base/ice_ddp.c @@ -424,6 +424,9 @@ static u32 ice_get_pkg_segment_id(enum ice_mac_type mac_type) u32 seg_id; switch (mac_type) { + case ICE_MAC_E830: + seg_id = SEGMENT_TYPE_ICE_E830; + break; case ICE_MAC_GENERIC: case ICE_MAC_GENERIC_3K: case ICE_MAC_GENERIC_3K_E825: @@ -444,6 +447,9 @@ static u32 ice_get_pkg_sign_type(enum ice_mac_type mac_type) u32 sign_type; switch (mac_type) { + case ICE_MAC_E830: + sign_type = SEGMENT_SIGN_TYPE_RSA3K_SBB; + break; case ICE_MAC_GENERIC_3K: sign_type = SEGMENT_SIGN_TYPE_RSA3K; break; diff --git a/drivers/net/ice/base/ice_ddp.h b/drivers/net/ice/base/ice_ddp.h index 9aa5f03559..5761920207 100644 --- a/drivers/net/ice/base/ice_ddp.h +++ b/drivers/net/ice/base/ice_ddp.h @@ -107,6 +107,7 @@ struct ice_generic_seg_hdr { #define SEGMENT_TYPE_METADATA 0x00000001 #define SEGMENT_TYPE_ICE_E810 0x00000010 #define SEGMENT_TYPE_SIGNING 0x00001001 +#define SEGMENT_TYPE_ICE_E830 0x00000017 #define SEGMENT_TYPE_ICE_RUN_TIME_CFG 0x00000020 __le32 seg_type; struct ice_pkg_ver seg_format_ver; -- 2.43.0