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 A9B5A45BB4; Wed, 23 Oct 2024 19:06:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4348432CC; Wed, 23 Oct 2024 19:02:13 +0200 (CEST) Received: from egress-ip42b.ess.de.barracuda.com (egress-ip42b.ess.de.barracuda.com [18.185.115.246]) by mails.dpdk.org (Postfix) with ESMTP id 2C48542F77 for ; Wed, 23 Oct 2024 19:01:28 +0200 (CEST) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03lp2106.outbound.protection.outlook.com [104.47.30.106]) by mx-outbound21-18.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 Oct 2024 17:01:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MC3eYLP7Opc6XF9Woh6gm/5p5ehb5CZI+LrTc2ZpzQ/pIId2F6A3/bL+DuijHXULS1AKxb3+7ogwl2Dc+WNHATvwgBkfDKwp5BZsKRngUK95y1hIP2U7/ViJkIxwdUiPQbyroGIg+atKiKe5Wu/QA6fkZRl6XVsmhX7cDe57OrEiBPTA46mbQpXp1dslvPjThm1F9dqd3LZQXYf2kZEtIR5OS8dWivRzzourngri1DHSAXXDm50od8zPgFQ0/DCiyk4mUFog4CxbPR7iVgFrDXrt0IG153n69PRk4E7riSeZeyy9S5Tm+oPUVu+yJG+9VpvrgnRr8EX67lu5D9cILA== 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=AyWDaywE75sT3/qlu+xVWxqjaUKlwBjNyB6ghiRnklbLXm7roRZAggf28scEvMOR6BB1+uRcPH9X1K8Aolp6IowK9PhzGpy0XTf+8G3ueezhhiiBJ4p23x2sX0LNrs27Yz9uKYfWpP/d2WgreSBT+G70zdGfI1KJZuyT4+9kRFvFCAy+MPUR8vsduQouoYlh4wxHX9FKUZntFqyIjAyXyZ3AENSIRj7nOA3GWOhrfm5INdVARvIoPrK+yaHE+PYUz6iPCDLKMPiWtUnusLKHpoitRx5e3jhIO8PCTOvBlv+/Q9ze5/Kc8SBsr00IoY7cNJD+o4MIy1kbt6EG/R8Jzg== 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=NqrPEUklSY4KdiIZ9iwYWmP9W1rL846vL55zP9U+Ts7InwoikuxqTet4C18z9fATbLgadERxkOrIS/za7mpj+YeiFOVnwnrXwHMnixGvZaetEiIFzA5hNfSav8DIbVxt/Zm6WLB2X09H13WP3y89gems7mCy7/mKOunuSoX6pdI= Received: from DU7PR01CA0018.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::12) by VI0P190MB2210.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:250::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.27; Wed, 23 Oct 2024 17:01:21 +0000 Received: from DB5PEPF00014B9E.eurprd02.prod.outlook.com (2603:10a6:10:50f:cafe::28) by DU7PR01CA0018.outlook.office365.com (2603:10a6:10:50f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Wed, 23 Oct 2024 17:01:21 +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 DB5PEPF00014B9E.mail.protection.outlook.com (10.167.8.171) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Wed, 23 Oct 2024 17:01:20 +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, Oleksandr Kolomeiets Subject: [PATCH v3 43/73] net/ntnic: add HFU module Date: Wed, 23 Oct 2024 18:59:51 +0200 Message-ID: <20241023170032.314155-44-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241023170032.314155-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241023170032.314155-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B9E:EE_|VI0P190MB2210:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2ae667c3-37ad-43e1-af55-08dcf38451c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?TUJPl6cCUqNQIutaevPdQ5VIjp9kB58kPG67bKOOVnTQ0yjW0tUim4ibb4v9?= =?us-ascii?Q?DMWRj34tEVeYDpej8CMebfT+X0dIHfgXkZRmZryx12iBH/w7TosPy/rdiieQ?= =?us-ascii?Q?NOKrDcveW6NEQOqqf0WCKWqx4RXjm2LH3ZxrwCnDmwfiDTamNMlORkwQrN6J?= =?us-ascii?Q?tBRMhlXrnz2WXKZu/2nc7RfnUIuHCONlGMvS77v5OBR3oTRaCkDvLFAMC7zO?= =?us-ascii?Q?5BfHW4QrCCdSP54OI1rX8DEf/ALTKMAtTMaoLaKNPKv/NbdQEfi2PTpypQQL?= =?us-ascii?Q?jYTa0f9h3mrvBmcHtH4oYjv6gubVWffkcFoWwWwFRPXnlU4GFA7mkuQv5Bvj?= =?us-ascii?Q?0Ysj1f5OjS/3h833bniXvCBvjenPkxYKfizNKeILp3XZULaSdL0M+44VjRwr?= =?us-ascii?Q?73JVcMXEm/asPorwgpf3P8wh+T/JT9XUu2UxOuCNIHlzSsYM/1msM7bw/8CT?= =?us-ascii?Q?57xi358XtWOu0qOANysqZob1bESaI2oxnqNVsfugVx3NL88fAZGvuSfBL/AF?= =?us-ascii?Q?5yQUHzi1GNTgmYYS9n/G14tcab90D55mWAmI6LY6jfAf95/CY5eXIxfGfYBC?= =?us-ascii?Q?X9mK0ErdkCD/CQgtmJejDXaRsrSkCK/eG670uy8GMvCetgq3NpzP2XE7CVrT?= =?us-ascii?Q?ozP6mp/Ym3mwsR1nrkSZkdgkEusBeYPYUg96CxBfaWzpGsOItwgaLVCxx7rY?= =?us-ascii?Q?yTHjyShHRKFV6qpD7ZxqAvp3Ide2VRsmoUeHb5GQrbQDSAH402YoylfMzmky?= =?us-ascii?Q?NbmyYcj8OkVbqSsCN+/OXQ/qH6/PY6r6NOOwa24mgjpuzaS6oZgal+lg51Gi?= =?us-ascii?Q?IaeUfavKJVaHlQ3g8NPp53dipEFP+XIpO0tA650XblRJnw1SZ6HhRKDq5OHg?= =?us-ascii?Q?Kv7sE3WKF3OUGD/fzqclkdWR+LW9o2R5D+uw8eCLtoflEsC2HOCYLGnXWzTk?= =?us-ascii?Q?7CccAOiujXk/67Pb5UG8qL3bws1dzmKiyoTecDBgtaDYY2c5+GA7PL1qVvme?= =?us-ascii?Q?/68e5eTKkd+T6JcICpOr1OU5k5G4O/8cTc45P/7guN7k9aGB+K/y6x8sWZVS?= =?us-ascii?Q?8G6ecsYNaKSZwVRqC7GcsNPKRJ78kzzw70LNEik32ONMqDFqPb3ySLgKJkYo?= =?us-ascii?Q?g8YDvQUtInA7ZEBXqvVSqqeHeSnUXjv/dLViXbpdJeCiSPbqcyAUR7Qxioyx?= =?us-ascii?Q?PDZkNUyvDoQ+uzNN7K+enbaTUxEF0FhJ+NLbjAMrtVzD6IlSXRDlWXDUt0XU?= =?us-ascii?Q?57+s3IvwACrgto6OtGfo0WEC6kAYM6lMrIbVxOPxqFVxzsg6nDdZi5CYV7Kb?= =?us-ascii?Q?OIWxrexJY9BdcYcABTCU86B77M7lg6R15c7gQhcuS8T3JciXPgXJKRiWNtCq?= =?us-ascii?Q?u+iBOYjkMA/BMxzb13m4QgbSig8eL6okSWSzKRJ4hwGFFf1otw=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)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: VketVeQCnvBEoYGHquSJtnECcNCrQYFVy2sh8XWJJ6oOtJz+2cMwzOQcHpto20oZuVfoFPNvpd2kylHNC3naD2/XkG/DbxjikpxTqz0NX3Xv1F7KDen5n6YBKUtPH/x02snzooc0V1kCHlxPdHb2Q28t50qWEiguUUb6itHHlGh44qIVhMLva3JRqUvSi4qE5mJwcJ+TYuJvIKsyhfNLPC60ElT3M/7/Bq05uMblGd+oefL6CNfDy0Ga6SfGsTlfMrmPZvHwrUhkBr2hM7qE6+VMQjSubUiY7ipZVNNY1uhJEGCubdaOcmvbUox67iYJXctsYpIEVJXTB4H5zluoMWuAxam6RnWz1ns/RNk4KcgIxT6Agt3wyirQ1BcC8y1n0+sj4UK5Fc7cfOMBxaElzLhaNyJ93PIxNGoVacB5bY+SvdcT8KbU8HeaUlUXDU6UweK18I4GALLe4XyBuQqk/Uc1ZuaRJX/52EtFg7d7iEZMUgSGaS1PaP0un579aphy0V/tNF/gIFF1F7f8uPwl+PtJHIK00JmA9HdJsL1oVN2YNH1FfOC8buhe3aFV6yOEaIEJUh+30k9wuu1IOCQW6y2334qPWRsjQXkN707xYpdyEbBwdgvtRZbVqJrrB/i19gQEFG/vKjCZ3aP7o0vvKxumDpF7QS85YhNnUugWEPM= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 17:01:20.9926 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ae667c3-37ad-43e1-af55-08dcf38451c0 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: DB5PEPF00014B9E.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0P190MB2210 X-BESS-ID: 1729702885-305394-16202-13671-2 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.30.106 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.259925 [from cloudscan8-201.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