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 91AD645BA3; Tue, 22 Oct 2024 19:01:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80F6741156; Tue, 22 Oct 2024 18:57:09 +0200 (CEST) Received: from egress-ip42a.ess.de.barracuda.com (egress-ip42a.ess.de.barracuda.com [18.185.115.201]) by mails.dpdk.org (Postfix) with ESMTP id B76E240EE7 for ; Tue, 22 Oct 2024 18:56:48 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02lp2235.outbound.protection.outlook.com [104.47.11.235]) by mx-outbound40-26.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Oct 2024 16:56:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f4oPwXKmsasOBRSyrwxxBKcAWUkYNXErO7KpZIFAATpiFO7WSez6eFglAPnWOYOlcvssjlmYzzv7TajlBDy+hzjResGf3FWSF86hy7eDqO6X7B0J6Kmzbmdi/zbeN4CD6TPXmiM86uup7B3fUAqyFwL6AXYyad8xUq3WcX8iRG/hQfqaF6NAETH4RqAA5mLJyKUmLYJaQ6jksuyvw1NHCj3Re3vPKtNzPFmPYN5LG+nie5Ae3gshooxBGjfPO5xygBNk61BDur1fM0XQedu+mryh4cswTtN1GMKvfWYEvzwzgsJEVKeDwqnT+QqTzpRKQRI3ZsKlBve/unV9gnq11A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AyNhbwh1htRVMlo2+r8KgZ/xfdd6BmY9V/7uYqIeO18=; b=gFZj/dYC2B80c5ptJSyNCk2pgU716ArGabJohmZy+Wo4tl7P/gy4Mp8mSYZ/Q/JLIcyXrYzeTwlDPHhsluFn69kbgmEe6Fx2BAatXymia9/PLIyV1Px8ItFBy1plLVm6seHozxKcZlFdO4EIaNc+tVb7253o2F8aKQHzdQwwyP7CEbgbB/iGlI7RsD+eXVlRRNTAJYxlCdS7D/Y40fCf1M3pJmvWM9+MREEcvQ0p7w70Q3pCqVUZGQG+YMCXoqb02F5u+6jk0mqB2mYC/lImbKEeqnPekg3FTVFrh1cPyCRH3Chwj6shUuCFYwtmgnQBpIWw4VU2hkcrAZU0TVnyyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=napatech.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AyNhbwh1htRVMlo2+r8KgZ/xfdd6BmY9V/7uYqIeO18=; b=kO0KpsRZpdxTpmWh+S5yg+9kbErrEfDxnuMcK7Lyk4PxB4DOvovyFf9Lci777y6GTuFl4HNajBM7dfXLA8RorCl2pqASfMEvkAdlp2NSoHN30ZW5Sz0BSJkZPrMlkiH0P57Sm8mtuHO6d3Xm2F4Ud3clD12yi1+gBBD2/fg5dV8= Received: from DB9PR06CA0029.eurprd06.prod.outlook.com (2603:10a6:10:1db::34) by PR3P190MB0971.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:8b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Tue, 22 Oct 2024 16:56:46 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:1db:cafe::c0) by DB9PR06CA0029.outlook.office365.com (2603:10a6:10:1db::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Tue, 22 Oct 2024 16:56:46 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4) smtp.mailfrom=napatech.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=napatech.com; Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com; client-ip=178.72.21.4; helo=localhost.localdomain; Received: from localhost.localdomain (178.72.21.4) by DU2PEPF0001E9C2.mail.protection.outlook.com (10.167.8.71) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Tue, 22 Oct 2024 16:56:46 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com, stephen@networkplumber.org, Oleksandr Kolomeiets Subject: [PATCH v2 43/73] net/ntnic: add HFU module Date: Tue, 22 Oct 2024 18:55:00 +0200 Message-ID: <20241022165541.3186140-44-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241022165541.3186140-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241022165541.3186140-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C2:EE_|PR3P190MB0971:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 08ab1717-e4ac-4d08-e345-08dcf2ba8379 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?kUminpKd+/DeqVCs6wrjjIGnrRrVISu9gLiIALcIzRwoElNqW+20P4fvMkIq?= =?us-ascii?Q?XVLOkkcxsEWal5VAHq599axz/vf3GuXf/iT+T63QLhEY/YeqgL8W9Ic89FGu?= =?us-ascii?Q?EfWQA7VH0RxugDUvjCKN0m4GaDF9MREm/sj697j8ubiJSmOMOVHCtdYPBvF5?= =?us-ascii?Q?d4g6AguryIxh4HPhQSMdDRwqWD8l2UZrptSVmU7RYcny08Q2fBHc32k62HZG?= =?us-ascii?Q?+/o6OQ6Iy0oSzR3UvqaysZ94OFgR3zPPisDV5VKEOv0xydeAWff8WgsoH3xc?= =?us-ascii?Q?Ky0SHE7vRmeee5vvKKUKYU/7qxINC+yBtTfv99O1hHPbQ7/Ri0BUWUy2Ylcg?= =?us-ascii?Q?nSaCMTN2ATpxXELoSZdNKcJcq5VfB2O6gN+hAuqHU7O7OuyEJOgZdErQSrzx?= =?us-ascii?Q?K67iMONicHCvz7z3+nmymIPLwrNMMDwpzRCgrjkHGq+Au1Aevjeks6UbqyiC?= =?us-ascii?Q?O0lpDEXznd+/EBlQJDL7C4exH01A2UDfxrDY5DLxBOrQ/OqT/GX89WwO7Py7?= =?us-ascii?Q?4An6RTARtr9M1p7lWDl3Ws3T890wIz175X5KKvv+izRBEp+x8Fus6WKcO7jK?= =?us-ascii?Q?J8AbxI2XerXoAaCQ1Kn63100Zj87F7mcnufvdsWM7Z8m4USMt8dmxRhbybRc?= =?us-ascii?Q?bghpUMPhsZx5jBwt9qLgI8v9TF6DMil9wiD3A4bb2d2jJxz0STsPxJHbH+Vf?= =?us-ascii?Q?6x/1CWr3NptxX+u5LhIf3M3zOzj1O+eTHWyacN8YG0YzjSY9ZzT59WCRP1nV?= =?us-ascii?Q?r7rvbsx/OU1D7i1FGfVHk0Spmlaic7DYnGmMuX3wTZuFOeHRQCygQhpf7QVk?= =?us-ascii?Q?KTcnYc+9P50cU2vDzVQPs+PURMDCwPqE0blXO4XQceCtoDjU9IL8gnxgdgGH?= =?us-ascii?Q?ia5D8K3ZSxSE9T3OB+8HB2aSWUkibSEEepK88Q0LOYXuohIPJ8MPD+H+XYk4?= =?us-ascii?Q?R6O2eaX7xqkophieuAqpc/BEZ5fKip/tWF2AkhvXQ2wQ6x1vB2vj7QoT3Ykc?= =?us-ascii?Q?YMnur552wtcaOxD4Cu5QiZy7gL5+7BJuLuDdhTPHeFbuWn1O+y/kE9vTDIRm?= =?us-ascii?Q?OeoD2GpqIX7qvh8Hpx5y/dtOv//Lhhm8CZvlibmaeiC+DPX2VkEmOA/A5Wpx?= =?us-ascii?Q?QKVE5b5YRemOE6gyU2IKnRgojChsnG96x9kHAF9vUDov6otRhhevlZXvfBZl?= =?us-ascii?Q?1XFwbZBD8TkXVfeiGo29hsGz0zSbfMc5HMR7PIXTNxc+aPu9lnkISWFK4ra8?= =?us-ascii?Q?Q1EyNIocMRlcKlLUc8xTu/MbD6xetar6PJef35CTDGgaqX9wQgSWZLtYnAJ7?= =?us-ascii?Q?EYm/9Pn0ljFx8+v2bd2WnZ4mwJn5QbKICNBWmXqPCO3g4nG1xlPEWHRURm6M?= =?us-ascii?Q?d3ALYcFPtUzX5jhxpUOnWppvxP4985HQtPEudc7MkkrJnJLgMQ=3D=3D?= X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(1800799024)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ArFVKrd0n29MFLwRDExQulLSu9Cr50N69gS5D62pxkH1V9jRAeAKSvZWp2odT+0QhEr+k42mYaS9K7gkOc3i2pl6xfnASawy/XH0X6RyagcCgwfhRZFRsEY+HPPBxkOhf3BnS+di1OWbx3P9hsvvg0jjiSTArpD6eN5tKIefvrza0yydf1gof1pdKjMiX3IZZ3fhF23xuG9K1/F7U665cey0h1W85uMG5q+vFeYC/CwAIdRLGzJJZ6Wzg9+tziQbiP1C57n32iPNaXHb01dyagD+1ux4UHp0E/7tRTZ46RExZ+3AlBNE9KMoZMFOT9a+kHNbBOXUh8IZKlxTuV1pmd3wD/B3YjwRiTkehxHXHBMrH+Rq3ln/eiHWjUqgES9NFjKE+vpQPkuIH6XY8Gi+qkLQWdexfRoLdtER0bQwXHt0KeRqC5H34NgxvcJPrURChx83E3hn3Ndq0TNJECPtVFoJA0Nwi3/gYPWaO2TrHhj3m9UDejRwhfMXPEUaz/0bpY67J3dPHnLpqzykfMgz7Wodrh8UEmIyHTjDyw2Ntzm6wEbGX+ZtQLKnRD3HctbC2WYIL2DD1xoiCsxjXW/8TbrjKAP8pMKE2f1SmRmvIb+Wh9Cml6iH2M94L/j7FaHRLOMhrzYxbdmFCjuPw+UL0WtqNiiidA3NDZRjRLHyXQ0= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 16:56:46.0441 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08ab1717-e4ac-4d08-e345-08dcf2ba8379 X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4]; Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P190MB0971 X-BESS-ID: 1729616207-310266-12660-12985-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.11.235 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsZGpsZAVgZQ0MzAMjk1NSUp1c DE3CIxJcnMLDXJ1NTYOMXELDXF0sBcqTYWAId/I4FBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259902 [from cloudscan12-62.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.50 BSF_RULE_7582B META: Custom Rule 7582B X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, BSF_RULE_7582B X-BESS-BRTS-Status: 1 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: Oleksandr Kolomeiets The Header Field Update module updates protocol fields if the packets have been changed, for example length fields and next protocol fields. Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c b/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c index 739cabfb1c..82068746b3 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_9563_055_049_0000.c @@ -919,6 +919,41 @@ static nthw_fpga_register_init_s gpio_phy_registers[] = { { GPIO_PHY_GPIO, 1, 10, NTHW_FPGA_REG_TYPE_RW, 17, 10, gpio_phy_gpio_fields }, }; +static nthw_fpga_field_init_s hfu_rcp_ctrl_fields[] = { + { HFU_RCP_CTRL_ADR, 6, 0, 0x0000 }, + { HFU_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s hfu_rcp_data_fields[] = { + { HFU_RCP_DATA_LEN_A_ADD_DYN, 5, 15, 0x0000 }, + { HFU_RCP_DATA_LEN_A_ADD_OFS, 8, 20, 0x0000 }, + { HFU_RCP_DATA_LEN_A_OL4LEN, 1, 1, 0x0000 }, + { HFU_RCP_DATA_LEN_A_POS_DYN, 5, 2, 0x0000 }, + { HFU_RCP_DATA_LEN_A_POS_OFS, 8, 7, 0x0000 }, + { HFU_RCP_DATA_LEN_A_SUB_DYN, 5, 28, 0x0000 }, + { HFU_RCP_DATA_LEN_A_WR, 1, 0, 0x0000 }, + { HFU_RCP_DATA_LEN_B_ADD_DYN, 5, 47, 0x0000 }, + { HFU_RCP_DATA_LEN_B_ADD_OFS, 8, 52, 0x0000 }, + { HFU_RCP_DATA_LEN_B_POS_DYN, 5, 34, 0x0000 }, + { HFU_RCP_DATA_LEN_B_POS_OFS, 8, 39, 0x0000 }, + { HFU_RCP_DATA_LEN_B_SUB_DYN, 5, 60, 0x0000 }, + { HFU_RCP_DATA_LEN_B_WR, 1, 33, 0x0000 }, + { HFU_RCP_DATA_LEN_C_ADD_DYN, 5, 79, 0x0000 }, + { HFU_RCP_DATA_LEN_C_ADD_OFS, 8, 84, 0x0000 }, + { HFU_RCP_DATA_LEN_C_POS_DYN, 5, 66, 0x0000 }, + { HFU_RCP_DATA_LEN_C_POS_OFS, 8, 71, 0x0000 }, + { HFU_RCP_DATA_LEN_C_SUB_DYN, 5, 92, 0x0000 }, + { HFU_RCP_DATA_LEN_C_WR, 1, 65, 0x0000 }, + { HFU_RCP_DATA_TTL_POS_DYN, 5, 98, 0x0000 }, + { HFU_RCP_DATA_TTL_POS_OFS, 8, 103, 0x0000 }, + { HFU_RCP_DATA_TTL_WR, 1, 97, 0x0000 }, +}; + +static nthw_fpga_register_init_s hfu_registers[] = { + { HFU_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, hfu_rcp_ctrl_fields }, + { HFU_RCP_DATA, 1, 111, NTHW_FPGA_REG_TYPE_WO, 0, 22, hfu_rcp_data_fields }, +}; + static nthw_fpga_field_init_s hif_build_time_fields[] = { { HIF_BUILD_TIME_TIME, 32, 0, 1726740521 }, }; @@ -2033,6 +2068,7 @@ static nthw_fpga_module_init_s fpga_modules[] = { MOD_GPIO_PHY, 0, MOD_GPIO_PHY, 1, 0, NTHW_FPGA_BUS_TYPE_RAB0, 16386, 2, gpio_phy_registers }, + { MOD_HFU, 0, MOD_HFU, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 9472, 2, hfu_registers }, { MOD_HIF, 0, MOD_HIF, 0, 0, NTHW_FPGA_BUS_TYPE_PCI, 0, 18, hif_registers }, { MOD_HSH, 0, MOD_HSH, 0, 5, NTHW_FPGA_BUS_TYPE_RAB1, 1536, 2, hsh_registers }, { MOD_IIC, 0, MOD_IIC, 0, 1, NTHW_FPGA_BUS_TYPE_RAB0, 768, 22, iic_registers }, @@ -2219,5 +2255,5 @@ static nthw_fpga_prod_param_s product_parameters[] = { }; nthw_fpga_prod_init_s nthw_fpga_9563_055_049_0000 = { - 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 24, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 25, fpga_modules, }; -- 2.45.0