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 A936445B96; Mon, 21 Oct 2024 23:10:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD89240E2C; Mon, 21 Oct 2024 23:06:47 +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 1641E40E03 for ; Mon, 21 Oct 2024 23:06:09 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2177.outbound.protection.outlook.com [104.47.17.177]) by mx-outbound8-87.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Oct 2024 21:06:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N1G84exoRBYZsPRelHNe7nDk/b6FYtuueqSt2hX5Kvcq4p5Sh5txh0+Hkz9+50nhBkyjgi8r4K+s12PTTL3hAv9MlQIC0gKsOPHKlVVAq8PAh0Va1Nx2rzmUuFJ3Fe6/3Mf3EDXmeTl5HjUY5oYpoplk0w0pfX+MGhwXC9lroOyGSQuyYrCi9f9S4SygF6E6i++wGAn+h6UTU8KJ7q2t16mbpU3q//wKSrOroGMoW+tik6Skjrl0bkBHW5HsvS9PjRSuVp+88I4KjJtNsJ8XP7W+4SI7NAhPKWLpO5uMSTMwPDqsNq/eBXEd6bo0WFAx2heS/RHa1Dk0FbAqWQay4w== 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=ie6U8lN3lioQCCFQ37AWNL8darazmcd7XtQwHCsmyRcOWPvEOKdl/iNY+sQIPfMWGF0yJ0C7wAmmPGYn7nO9YTxuhXkCx2dYbs1CDcacI+gsOKR74m7NkQm9xnCpfGOrTD/1vSi36VGWjkMnFJVBqj6AxV81uLXdqABN2Ook1wdLPHzO0V1eMi2CV+0hoiXAj5E0RnlC1y4JR6VI1iMcJdeRrJo22QRVeeNDwtnLKBCEleqzZSjzsnPzuI3p2O6Jn/S+QpmzdziNKM7Tot5PXsxzCc7exEuXLokWaDcBXbNzq78IAITSVq86bLb/iJHNiFmSj766EqtRNqAhUsLa+Q== 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=Ah9fOwUxcGprsHgqbAGRyCBpA72lbGnaFLKw9WvfOmkmwtlneOpMYDmR15JR+gb7xHg1aty+4UzwZHy4ydMNytNaIqyELa/HUFzGsQW2fcD0TVDo4H8yD+V6mvxB5vgcJNxkPeOnqxlDRvVZhfH6PinjvGqFFA+7YaVQR7G/osA= Received: from AS9PR04CA0154.eurprd04.prod.outlook.com (2603:10a6:20b:48a::17) by AS8P190MB1862.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:52a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 21:06:02 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::ac) by AS9PR04CA0154.outlook.office365.com (2603:10a6:20b:48a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 21:06:02 +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 AMS0EPF000001A8.mail.protection.outlook.com (10.167.16.148) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Mon, 21 Oct 2024 21:06:02 +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 v1 43/73] net/ntnic: add HFU module Date: Mon, 21 Oct 2024 23:04:45 +0200 Message-ID: <20241021210527.2075431-44-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241021210527.2075431-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A8:EE_|AS8P190MB1862:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b46a48ed-0cdd-4682-fa94-08dcf2142bce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message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MwLRfcXzCeWDmM7K2P/9UgyAh7OvWu?= =?us-ascii?Q?vOLaJ7AGZHCAIhlm9hgzVQ4KtjXTgbhzk9yi55VDHDg6ZxVJPc3MKTnJEM0e?= =?us-ascii?Q?PnLUARLbcostHdbJiAYyYdgJnuv1ca5mg6vrjbPr7t2rQE/7PQvUYVlYoSEf?= =?us-ascii?Q?a/6Lo5MGrjhiDAZJXpOuEVw8sWwymRUqaABeaVWoupkthW1c9C9gwQ204DsU?= =?us-ascii?Q?5jdoLrH8IfSl8HVDzRqXW2L6h9i9ccv2X0JlErC0vKVLg9O+35ecpHA37MGO?= =?us-ascii?Q?gYGiUsE0BrsTug2ht7Pwek+6HRp2gvrw1/aANsRWEL34qq4DVqRzp/Ahz3mV?= =?us-ascii?Q?9gk9SDMK4JW0UU2z8C+NiXjSvGuy7by3CpJEYzyl34+z9VsqTAf6euqjVAYE?= =?us-ascii?Q?aOAFteFnZ8bucD4d+dkFG9496jRizn1EE4/HVtNz9P1S+YlmesWrxlIMkr3A?= =?us-ascii?Q?Ca6InzkxJ0/vUWcInYffcMn2YenNuCwqGfW79iGfh3SAmqR3yxZo/VJR884f?= =?us-ascii?Q?IInUIDtUVAIBYVNV0tM+bVJ4nXtGbreQ5jOGtV+ryH6xXXyYQg=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)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: bOpY7gI4OuB9KMvTdRbrxlMCZUacGbMrqeWcKHAhipTLTtKuZ+D2mGUfd58OqznoQrsJHue+4XGLUqfPtyQo/7XokQHYK54IB34+A8hJ4JhQQYqyPmUg6QhSdusbviI/FMPuPfzysX0Bteb0tQ47eTMO7N0TNfw4jWiVgYeOo8d5R/h7wshbj02Qf6z5/XmUQLHUe726NFlpfNodzHIIKd93KyzMg5G6cK3jOHgAwFbYonhpsTMGvD/g0W9JT4PI9DthVbyIwLZMB3Gtfc2G4nY6RzsWShpFL6JZyu1DBwYMjaIpsnvb6bmvIYXKvUDLYUKTtdBAQWCgLryFpZFCLphHzrRxzMcqixLVkyg/TsVp+Cm4eB8xFgOT/2Hin2IpXifByzVHddIvLQCNtJA8B+h0gCASl4T86kzikIDCHyeHWW2SNEgYuXDfcv9JM56U8Tedn4GZE7al9PnUMW16yRdqxTTRRbvaxynfKV1Zvf767epjB3w2U6DMpLE7O5ey2pKfuB7OLpeCi8v2ksCxn5rhfjpP6Xeu4nMVL4Jbww7L2thsWmcbjaIv3/dc7Gfx2JNCehpI0+L9+x8R6cY6C6fWwOedMcsKAfVvcrgsEtVwtLDAllpYPUAxDuuhYX5H+YY+amRJoFP4+KNmNXrUKhPdColf3zcZhwIi9iUAkvQ= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:02.6457 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b46a48ed-0cdd-4682-fa94-08dcf2142bce 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: AMS0EPF000001A8.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P190MB1862 X-BESS-ID: 1729544766-302135-12940-43234-2 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.259883 [from cloudscan17-111.eu-central-1b.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