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 B394345BC0; Tue, 29 Oct 2024 17:49:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D15CA43009; Tue, 29 Oct 2024 17:44:33 +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 ED1CF42F35 for ; Tue, 29 Oct 2024 17:43:38 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2169.outbound.protection.outlook.com [104.47.17.169]) by mx-outbound43-199.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2024 16:43:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=utEyiP/lPS8maLT5fS+Vq8w8XyEHdZmh0xGskOmTa0ueEu4o/pv7kLqC05EOQk50DY5T4BaoN+LaQO9Cu6mwQc2NBSdFtcnD3eAhPxiaEw+tVCpgfJcv2oan7LTmH/8dr81uQaJNu3rUvsb/vAP+Sig3z0SsSB7vnDphcq2dIjiktFUJz4xLsb9DxTd1Rdiafv8MP10S0FWhZyeNSTPlnrwNj8md+y8xPJmD6U840+tt9bRVSt9YmbFBfaSyYt7AF32i00oIACfPruZEMOIuqEFD8yTVkU78yu6OqwlrzCNW+rsuc5+9wonBop5QypnRGFePFKiboqiAud262qQjmw== 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=a0haNHV6ohLNlJkeI4+LVY7OlzriMBWrGImC+fhiihTXn1HHxizEqYOdW2LQbA6YuhqSeOEQ1Gq+3tFAVn+PfTSEDaRTWrZy2QDspwZ8kEdsu6REx9tIPentOnwgtPz6rMbMw2Jpz2iOQWAeqt1mPpYPSGfLyKnoJXPXhJ/EVHYwaqZXp+a4kVTmaykyYxifGbQB+VMnRxbiLcpeF04UKGspbVnYg1zy4Z2Mg8hL1CZMfM5o7LEj0DQqXHcQopDHm2Zx9l24KIBmLf5AKOdys6oeEiXHm1ha5nEXPbcaWGcpTY6QTm+Drccp82TfR7jHG2dds0S429SCD7f5fPCNHA== 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=NHA27XNIxzetKC82/g/tAxogGZfaEC0qYGyq44fwZU8eZfcu3Ra3vBEV3+qcVAayJ0hp4zZCBduRZ1VxmdcHIM8BYYtU7+rqy2nARzElsYXMWWv5arr8tFzix2iiaPPG60e+UlY+u/k0DIBG5NsZdg1pC0U2W1qvUvu2QmD3rS8= Received: from DUZPR01CA0200.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::10) by DB9P190MB1068.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:224::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Tue, 29 Oct 2024 16:43:35 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::d3) by DUZPR01CA0200.outlook.office365.com (2603:10a6:10:4b6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.17 via Frontend Transport; Tue, 29 Oct 2024 16:43:34 +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 DU2PEPF00028D06.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Tue, 29 Oct 2024 16:43:34 +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 v4 43/86] net/ntnic: add HFU module registers Date: Tue, 29 Oct 2024 17:41:47 +0100 Message-ID: <20241029164243.1648775-44-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241029164243.1648775-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241029164243.1648775-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D06:EE_|DB9P190MB1068:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0a0755e4-06ff-4d3d-ec05-08dcf838d4a6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ju93RtI6KIT8YJXzchjSBslHqQj3qOij4CqpN4VCAKCNARs99afq05jn7ood?= =?us-ascii?Q?4fYtxRgIZZI2hW8JYDaKhC/Yy6OrlASZ3nZwOQvOyQ+NXchg+Aivk54Al5bw?= =?us-ascii?Q?S9NVnZYTGDom6xWGxZ8Ut4buMUtUJWMGLX5q7f24EuOxjcaIVYiufdB/BEnS?= =?us-ascii?Q?qxCN0DG7tZ6k4H7sZK4SICViRiISevndMbdXdtAgrcjsCfBPWHuJLs+beNOj?= =?us-ascii?Q?Jq6uHR0+d3MzgRx4tL/DcBi+5UEcaMBSOo5z/SUq7aS024HqOb8Pu0f8fU1i?= =?us-ascii?Q?BLpPo5QR+iTv12ak1VY0BoG9SZg/k/foMoD+yoSguZeixaD8hBg4M9GfZXnA?= =?us-ascii?Q?lkOdfHMG6SxRXj9aIOIAHCfMEUb4xEcAex+g8Oo3RJLWZGCrpfMTM2B9P8nB?= =?us-ascii?Q?ajJ//G++/IBsUf3nR1TewV/WEQiiahDJtHN7Z2EkCH9iX3nA2hygvVQ9V3Iw?= =?us-ascii?Q?fXdM6peX3xY/8rrItb/HbH5+L7SH1adGqVUF4INdoEA7bQ18Tu1TSE+uRnyz?= =?us-ascii?Q?uEFip5JDTEcNsqZ82YCzoKh1LOVlrdRldZmEo+SsPnOLnOmoTFHY3jZNr8R+?= =?us-ascii?Q?bsSRsthK4Ob91mEdSaLMEVt/nbQvy/a5wzju9gyGVNAa/3GnnUyiMgrNE5SA?= =?us-ascii?Q?biVMDg0OXiuNLfM3ertcI9USrCmwIrwbiqYWtlAxoxkdlOdU8WgzKhvswJsD?= =?us-ascii?Q?X2zCu31orDJGg3hPpppxIb2700weNagg0wBgLnLnzxdDwXK6kDMivuzoXD95?= =?us-ascii?Q?4hu/5F+nz+h2Y52z9aHoXnoYU5BWWJ7waa1s2mbEEO0r84oCZFwPUogNmQPr?= =?us-ascii?Q?PYlx3J87eMCi+UrGctSPdxNir9ivzUkEgVIt5IzUaQRYvYrU60Y/CYXveY7E?= =?us-ascii?Q?GgjbnNjwj4K2lpL6SbdKxeYqip+dF/esEakhioHqyGvhPqvLaNFdFEXd7EZ9?= =?us-ascii?Q?ONMbfnEoYGEzd58UfHWmB9iDZj71JPlglEYP00IGYWSaBcWuBIyjYIJMRhkR?= =?us-ascii?Q?ifgZnlN6hT1/agnL/UTWaRi4caHLfr97elTYQEyUsY2HvLZwUmgrdsa7vCDV?= =?us-ascii?Q?wt7033WXjpZ1jcdqYB+wWZiBiwFCc9hsT+VzCXq/gZLVKau2ph8+t94IYWrm?= =?us-ascii?Q?pvwudoow7226NR0im6QOyVDsPqZLEOQi3gRSkcTskVj1eHLWp0R3ImLStONR?= =?us-ascii?Q?G3Lr/yRbe32phll1lh+zo+2c/CdLALjarlJe3yt37SBykWnjxdsGVMysh/03?= =?us-ascii?Q?XDu2gFvH67/0ButyxtKanaRFEExwL3DMrKgxlyYgFK7lyuaFoONHm8gIucRH?= =?us-ascii?Q?npGAv7p12nKeLtx0JNxK3rCsvTPNJayI3p09Kzr/9BUhTFifRY9GGUtQcc6d?= =?us-ascii?Q?zBlmb4BiRRMwrpO9t59Fyb/1UAuH4nFtbofMKLqVZviLnmbZig=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)(82310400026)(376014)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: LCnLJhvVuNEVJpz/iEXnWKaICnVkw7oCROVomgrlHpGUKWhkc0NeBb2U3C4UNjB+6BfD9hHbkd5miS1gmuZbxmHygQDAUmiS2EmQuWZNkZfvES0stu+INDOnhVzr/5DSj9OMDjk0qw3N9sdjERL4X+IdK0AFj0clKMe0n3XMQX68XXqp9puOmjO1d3AF2cJ4EgbiNpjQmWqrx7sS4YrNypnM9IcCIA4GlK1nNrTXb6jYcxYDP/ehTAXH62joI+N93ZjIvcex6Ow1or9R1i17C/ITZyyabjzRbnSST49XVH9QzqwFc1FZF95umaYGwW4zraWftNiSxMzarXKkgdtIa6PLgyaY23qxYa397AvZk3ijBwEHHdbIpv5HiWZ64yjzcfNi0PDiCdd7i3rLkwDmQII8iTcF8wyJqHJtXt2H/aY1LFAGFPJsyninNz1FEueX+gUV/Fsznj3bofPl28cg5faPpbZiBEHXqhWw83DS3dF5M5nqyvS2564LhWUR5AVnskWHVN+Sf4CG7ZddS+CfRcv1VbPUyWOEDLGOWjpnvSKFJMK+ahXLM0BUpIqMr/OS4/L6pNtSZx4SP+Rnqu8APfs+B9B0ISdqgZsp3OkPVRMT73Llsm3W6sKCVSt2ViCi7XYJOUFpQC/bh1UXGDh1JmaY+zVJgTCw8l/JsfrN0bA= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:43:34.6365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0a0755e4-06ff-4d3d-ec05-08dcf838d4a6 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: DU2PEPF00028D06.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P190MB1068 X-BESS-ID: 1730220216-311207-12665-27855-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.169 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.260063 [from cloudscan21-180.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