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 273E245501; Wed, 26 Jun 2024 14:04:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E0EB43469; Wed, 26 Jun 2024 13:56:41 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 1B62042E95 for ; Wed, 26 Jun 2024 13:45:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402313; x=1750938313; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hM4/B7mC1jY9T7xbDZKxEnm9+eWlp7ScjPfzN7FYexI=; b=I3MyZCdxhuoixEyc9e7XN1IAyJ5U+M8bkyAq6QXyJB/PGfi/GaQiPVwD 6YIUW31ZonuETSvQEtTSsTiR+EABEpGJEgk680PNNfviOtekkgtIhYHqz 63N0xX8jImE3CeDG650rHyvGs+5I/BAtr1w0tIVnYQofJ/HGNmBaoTyg5 wPizTyulj+44ms9qxtz22EVw4U9b2AUhMRdudMixQ3PiiuF+sLT7Cg18l Z48YEOd4vi1KPvRvDFriTcl38x7g/FFCI488gRnUtLgfV6yVToOfE+XON Phg6V7gTHIsV2qfvFidCUOuB6So0FsnZfPqor1j43X0VtsAXEUaHT6/WF g==; X-CSE-ConnectionGUID: H1bKn30BQGKzLWbkMzYHmw== X-CSE-MsgGUID: uIdfp7iQTmaeOnSoiuhsYw== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979524" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979524" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:45:12 -0700 X-CSE-ConnectionGUID: aAtxXZzoTZG1ZDO8hnuW3w== X-CSE-MsgGUID: /VfP8R5tSpibw0hLuIAx6Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43874239" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:45:11 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Sergey Temerkhanov , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 077/103] net/ice/base: support E830 in DDP pkg handling Date: Wed, 26 Jun 2024 12:42:05 +0100 Message-ID: <19108782daf7090932952e716925838acce9109c.1719401848.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