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 1FB8245BCC; Wed, 30 Oct 2024 22:44:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C05C433E0; Wed, 30 Oct 2024 22:42:15 +0100 (CET) Received: from egress-ip11b.ess.de.barracuda.com (egress-ip11b.ess.de.barracuda.com [18.185.115.215]) by mails.dpdk.org (Postfix) with ESMTP id 6941A434CC for ; Wed, 30 Oct 2024 22:40:38 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2177.outbound.protection.outlook.com [104.47.17.177]) by mx-outbound17-81.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 21:40:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XzhBQcK4oOn7m8P8357Myrnuctrgk49rwnJHQa75ZnF2JTkNvbVzMn0u4z4gKHYnJ8G/pgLdMvLQx0neYtBRiMHuqD8v+ScdP9QMxQZvq+AZOraHDGFn2R19BVk+RP/tDb8hx1K+z7zXhIThSkWIYS+HGw1qNtuyQFF3ZgSzP5wdEGtJd1/fGPixfhhwOqntIyiwHQvnIhqmP9BNVeNmWsIB4wnyYyGtOObtDjAOiFhF/GQWT8rskzK02hSb+F1m03xH+VaYPGZN0rDy2TfzasaAe/WgWmt7s1DaMU3MbAPTaMHIu2LPxn0QcQLh/LgWw/yKdScWxwuMADjliS5f4Q== 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=KLbPhRsqAZdGrYp4nsi19LkTviny+uaxlAeLfhzteh8PZ9TP10EHh6NKbdtdWVVbD3qWoiK08V4tmm4hKGbxWRSqZpFjkT1pySOOolxsBBfPUTBzost5BdHzx5mVnCd6htR+IEKNPIOZO/r/cvCYeaQwiZ2Pi8upjetH25Kp94yX7fLRVTaCqZfig06/2XTyD2xVtYIZLUhTk+l3L2sDe5lx5uFUO42Czrllw8MoQeUxaY6NiGj249nUMMmpZlZgdkcJC2a5G980JeIyZC1gtv6CTJMx5Gt01oP4ukCNOOSiOMNnkDXqD2/rUigkNH8F8WOZT957wiAe+8NSD5hz7g== 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=okYIO4qxP3Wy4ANaO4WhCQ2xCZxzvOXpA/hRDBao8EwuDBlaWdXIcpek7NyAcyZxhOEUuVZUQS5XIpmM1Z/BvHFM/wSx/9Bths0fMsQLkfnlfzPl2BlOJoliwpmvp4dMixOvD1AYAMHMf6TRpAhZjLgfrdbL+aivUlZyGQ7j4bw= Received: from DUZPR01CA0012.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::14) by PA4P190MB1103.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:bc::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 21:40:34 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::fa) by DUZPR01CA0012.outlook.office365.com (2603:10a6:10:3c3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20 via Frontend Transport; Wed, 30 Oct 2024 21:40:33 +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 DU2PEPF00028D13.mail.protection.outlook.com (10.167.242.27) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Wed, 30 Oct 2024 21:40:33 +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 v5 43/80] net/ntnic: add HFU module registers Date: Wed, 30 Oct 2024 22:38:50 +0100 Message-ID: <20241030213940.3470062-44-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241030213940.3470062-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241030213940.3470062-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D13:EE_|PA4P190MB1103:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 38b8f3e9-7a24-43fc-7da6-08dcf92b7beb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?d8UjIEDWVyaVKeBlTO5tw/hk9RLZCY0eSpJ8gHx7lXkUZOeTuRfhYWU4PPQM?= =?us-ascii?Q?Gb+Vdg80qSJYkzJVwzc8OtfBnRHyGrG6oMNSQuf/xgCMN/C9/PXf/gLaCExD?= =?us-ascii?Q?A12Gvr9AysThN29OF7gRyidyjYKCmE9Ck2dEVd+nyCDJifUW4N8hhKu5oJBE?= =?us-ascii?Q?6LzQjHvIHJik6ypmrVGJTmQgdH2glACwCaPaC9Hr64wQLUZLQyd1n7zuIs2D?= =?us-ascii?Q?8yUyJncCC7z7D3Vqr4+FwyRHafqgkw0xazG/zzB35WDqnk9drqM1Xkzh1M7e?= =?us-ascii?Q?yrnr/PZKT84CeW1Ohlhxc//uBA7MQJbRuEzMpzGhvcZQ4sl4rmdKGWvaLJpz?= =?us-ascii?Q?eHbHeFR+8HFVHnAWhZwVO7TzCLwstkdzvXGS4EPK7N63QLJaLAp5voNJgvcv?= =?us-ascii?Q?G/VNCODvZxAm8HRHyEskIewbuo/nyXVjbRJ28Q4ZGKDKMdgLw9Yd6ukcBJSL?= =?us-ascii?Q?7L3CPz55qtMhqIxHowuQssLSUhK4NMrya7Yr8y8Q5q6MFUqP1z9O65smtd9F?= =?us-ascii?Q?lmZE1glvH8bf7Z87ww2iXWr+unzyiCZZYa3Wr7CfX+awC3XwL0nPRJhraOEm?= =?us-ascii?Q?wdp+Iz4HPuaycmeol6b4LzIj4RogARNzql6GQuWtk4Ea2mW4cQPCypyablpb?= =?us-ascii?Q?9m2maSMYJd7XMqpweyrEPx/zgPHsNYb4u3pD9Fea3Spo2Jtl+LzU3WjMSgYT?= =?us-ascii?Q?zFYrTRXFebKNXzeWaFNSGcjjVcDdbxjWlTStl+JCIYA3GPZKadecBjpE7Gm9?= =?us-ascii?Q?eTmzOGbtBCvtVpSZtQaCOIKSiawsNraP8N1dd5qdqo6VxbLdTvsYZxztLyK/?= =?us-ascii?Q?OzxCUcBovsQK1QZz+lyIJnzfH1GPowhBqasfeSgJ4OEtdxcdy+nOvno8YoDM?= =?us-ascii?Q?bWzjKwL5sZVL3OPRJjPCvDpuqexTY8MzzlOgkuNOYyRkoAiR3d/rgH3hSgQi?= =?us-ascii?Q?+RX+/aUv3+CxS5ec+OvUsTAPGKo+Or2eqDFnlZwbOlBZuLCejuEb1gLDzyxu?= =?us-ascii?Q?VvwEbOGfNIbMX8YMmk14jK0q3r1IQ6Q+EDBN/B7rSr5+4fHukDdgVTDHmCme?= =?us-ascii?Q?dDgvEtN+tkZ+bXTjzHMD5qFYLP/0ENFT3Z2rTp23q0It0lsZ6I0BfSlf5qwA?= =?us-ascii?Q?BZk03RjTiq5Z3tsp54bCXeNONPG1+AdxGihfq1uK/IVqVBLmlw72uWIA4MLl?= =?us-ascii?Q?zMQtFGm5SiE2RU6pUqUW8a9NGaQAmQMDNPQ1IErMB81Nqkh6o20dGVLAY9nH?= =?us-ascii?Q?V9bv8MSDAs7v5ZfVoUKybohWKFyi1jyvWRse7Cio6g1MUM9UPf6edxA9wv8r?= =?us-ascii?Q?dWfysJnIfaxGamiBQb4g6ZqoERTgjlG33pzJnHFEAdjYaVpl0HIifvh/JCdO?= =?us-ascii?Q?YsOlXjiwagHGG5ev0ip4Je2eVNFd1qjSD9Nms1SBaZX1ANkguA=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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Ye9YKqzmw9YBmEn5qQHAjlfiErd8FYSbZARKZgtwJvSp6hOBi4u/xwmtckrYTIFj4i1udNUWFxO1q6tqoXldmDqbkmkPhj1Rqg9CCqvMWghgpf7Tx1Pn22Jz5OKhfP7GDnstkJYrLaJ96Rc7knNx4cGvcTob+FXxK6GTasnW7aR2ZV9DBmMh6m7nEUUK9JFxIUJZ5GHmtMvz3J6RkBDrEf0mEuzmW5tJ+YGpFj3aGaLfQ8+bIC0ke9PpUrsS8dwsZ0S0KDKWSamYEI/KPMUTUrhEr4rXjwzVFZpqSzZ05NHMoJRgqT4/okeL8wIDgh+HLT9YeRrDwY7NhMxnw0QkBCNydTzq+PEuBxLUeU6igTG21Xcsr53MiuvzCdIGXB5DjvqLq4Uz52tFLsbDX2cF3eSTPE89MchKst1MMzLP0aAkF4m8COQIPSlr00Fkq/fw4wFUtN1cmUag0JHiG4m9XKW51thGv63rPz8yEwSvgZ5qp30pnTv8ggRaBqin9ragcYyvkc2Xjw/HRiLqewAhtaDAxnXDC33I+91ePjXF4zOMtUewPYd4sUM1UICWGsN66SzyOzgmfdMVDA30RgrSzR329iB/ktNdbg+UwBAOBxlmFJKNMREf4JdfrVJGC5vggAHk0n89hh1YtsEGPbrsh2iJf3wZ3+gNx6LUdSmlXMs= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:33.3958 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38b8f3e9-7a24-43fc-7da6-08dcf92b7beb 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: DU2PEPF00028D13.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4P190MB1103 X-BESS-ID: 1730324435-304433-12636-44633-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.177 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.260091 [from cloudscan15-95.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE_7582B META: Custom Rule 7582B 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_RULE_7582B, BSF_BESS_OUTBOUND 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