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 3938645BCC; Wed, 30 Oct 2024 22:44:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75DE143503; Wed, 30 Oct 2024 22:41:42 +0100 (CET) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id 60AAF434D5 for ; Wed, 30 Oct 2024 22:40:37 +0100 (CET) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03lp2237.outbound.protection.outlook.com [104.47.51.237]) by mx-outbound47-144.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 21:40:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YmMm5fsjGTf8JdnBn4jtmNhJXucodZQcJOZDRZNHYrfqEm7twj7sfnVf1XPmoDiNW2JeLTEYPXPRu4E+lXw9n6suN0tf4f9L743swa7F1kSSzCFLLwWGJxIFUmo/jlhifnId1CUd4JxVHXC5fmix7RbhWnDo0kbBx5Mt/mw7BSQTijdlD/1M53pUXQZ1z7IcX89j9DREADiTHeonpIzKwdieILjil8wJBmwiaAFf31rzWjbFN/t5tOMUiMblLgutWokNH1KwG4ySaDezTCPrdKMh1D32uz1zGVs6UeYniuAcsYCwPcEP4pf1UGtmUTN60b9uICjdxpjO4EeRShy9Eg== 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=VO7ys+WIdyPLrbx5lXwaXp/Q3eoJ40kGvW/7tAbpdzU=; b=BnbMQfY1Sa91W4EZVR03uYHgFvNIUwP21OKtLS7VO7Dd8ZJggPEnIjZOK69x9e4br5Cqwbl7XLQEqrfsofrHrKNQFV+zpkGixe79dieC4YwEZcnEC0Nxa0S7o/F4u+nv7d2eOHVIjN7OvwHC/5LtJqoZ/+UnQ6RuRLLbbdjznFdC6v/hDy3kffVxObcqQgxzcIqZWQkJsMpsKdnuPSnfGCLq6MsSCdqMArw/M0Pkb4wKIrpBPlJDq1Woszw9QatDeroveI7OtafdpbpNwUF2InHr3dUgTUan4MMOOhDgNNuBo4r3yO9XgCv1zS3FQ3Z4WbumzKi5wFSE2xnRj7tgYA== 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=VO7ys+WIdyPLrbx5lXwaXp/Q3eoJ40kGvW/7tAbpdzU=; b=i47yMxCT0bmgndPG/ZyWmojTk2ST5fJ/T9BFZG2ssCvhvDDwWPLrchs16aCCBAQbVeb1O1dqL4O22nRpa4y1Ra5wfLon0fqr3zLZeTy2/vuc0Z8xZY56ryxJiT76M/FcpVe3JDbdI0zEgRCucC6Aazdqp59cxUWFSy9CWBS7M2c= Received: from DUZPR01CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::10) by VI0P190MB2235.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:25c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25; Wed, 30 Oct 2024 21:40:31 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::9d) by DUZPR01CA0001.outlook.office365.com (2603:10a6:10:3c3::10) 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:31 +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:31 +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 41/80] net/ntnic: add CSU module registers Date: Wed, 30 Oct 2024 22:38:48 +0100 Message-ID: <20241030213940.3470062-42-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_|VI0P190MB2235:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9848f6ac-155e-40ea-7894-08dcf92b7a83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Td54KfWgR+O+gcpvM9+Es2dX3o5tCiM+60fC+bGnaODQJWJXwVH9dnrIoxnl?= =?us-ascii?Q?nEAkgQdGmvLtwJNlMK8aj9jrDCvJwlMqRlQo+L99usBZGkMRUQ0H3Z2dIDNe?= =?us-ascii?Q?oMEk3ejUACyRkYf12qcxmmf+FvANT0rbJQlR0MilaEUqy+fdchYiHJs5X9zy?= =?us-ascii?Q?D5vtn63xb+6Sy0fbabSD1WNGU512aycJ6PxiyavoQ7Ev2kB4ZVDyhGexvJEq?= =?us-ascii?Q?f6zXx3OKiijnSK8WZZPelRB/m7qlG2fgTKmm1jG/J8518Y1vF8ev5t3srU1U?= =?us-ascii?Q?306HLOpCz4QixCJK8gTOnoDJnZfl6FW1cKPXTGItUW5DoMMzIfPihsKJrklc?= =?us-ascii?Q?rLYKF/LzSGsxUlBNz0RMaXnIeyYKLMCzSkyyW7vY/bqZefkAophaIMex1S0X?= =?us-ascii?Q?6kkyUaENIw2az6P+hmpalDgfUPjvYwZeR2N68+lUNdMrol9+mdihC8UF4Hij?= =?us-ascii?Q?s8mZwUDPMIaWWFmGoBh21xH/9rpJqJpbbgHBtzS2Tp53ZRYfHlcyArOtOUWT?= =?us-ascii?Q?QOEPRS073QRLeasQDnFypYyCE+SR7YHS9UkPASyBZv9SAATxr5BivJU0rh5m?= =?us-ascii?Q?s0t9MZhWFYwToWryoXZfycaNcXD1qORyVvHLdx5cQeOQK7I5DLF0QZpOAPj0?= =?us-ascii?Q?zBTWxwKwtYia6tTrKrXe3yXS7KffXAcSvAJ8Hvbpnm2goIG/nNOPjSMRLM3/?= =?us-ascii?Q?YX0rO0Vv4kX0oGggdXdl3TcTMRZos7Omti0vXqk4WUvJUasWQ6r8vNuCNsqA?= =?us-ascii?Q?foRdTXuk6rIbFePsmgKcgYtJuPnm9EPUI8Koa30JBdfPOGmX4ft9MnoN+Q7W?= =?us-ascii?Q?Jn18uIKMGwtqogaU/1KK9+frniXF8w/JYsJpbmYOT0DOkom09QSIQ1kYH61d?= =?us-ascii?Q?EpkmRFbgertF8uKBK1gB3R7BIk3oyjCemYsElZfIAhfW9yF3oMiYaEDXglQu?= =?us-ascii?Q?elTn6gI93npNBK9XrAwAskoP2t+Qnhcg3aSNn3+/UsxA2V14j3ISFUeXhV9n?= =?us-ascii?Q?7+y/GJn8I9pz2bMutEzN+JO3189E9skbrr5bMRwYySn8BTGfcAyK37Zkyvt9?= =?us-ascii?Q?LXwzKXffiyABDbNr9pWH+TwiShTO8Z7H/B5Y1PdUcv5Rh/Mf3pUF4jexkv5y?= =?us-ascii?Q?VKRBSh4NcER6+RLrK5NobMoybX2GMi7Q50/gMxK01p1sNmf6NpraiWuY3TZI?= =?us-ascii?Q?mzFHG2oFB8o9UBj2BjJklRlp0OUytsUmPH6pu54ErtXve07SXWGOVvXe97wp?= =?us-ascii?Q?RKmietrYR9SZLCwxezufrqEUeR2yUPktsyYwl8nPWNBMobIcEyH1tNSs0Evi?= =?us-ascii?Q?qSx99swvZV0JXmh2ZTX3H+C+ZbYe/VNsHwj7sodqF/9KDo/tHb2jI0R4MGd4?= =?us-ascii?Q?xybH5TX8m/Z8u/+Z94YQyad2zwkxV8i/N2YklwTW6VZF7liXcQ=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)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: CU++NI/OVjam0NdGHojB3TQIyL8sN+O3A4l4iZJJrgw/Lywxk4hP2KXCTVYPuceJMmDQQpEva8I6J6r0cIQlnUPhx6iR+62SBMsjEwF9OnJgMsXHEn07NW1oF5XOUec5kb3xiE/wai2MMMYRd/N36PrfVGYid5S0C67DmGbeJ6Ceozz53q7Lm5v+vBu/z86GyKJEINmXO/aifhTqAHHp762SNaMASUJ0RR7ET2fF4//HRv4yMWSEbK0kzmpYLjRz/QE9dT/awr8FdmA7VE/VR7IFADLHYNoAmEYx+YOHgFPz92TIPrILn2HocS+RMoY8ojZRTqyWxy+F40mT4ob3GtShIQMYC9HH568Nfxwb6CW2K4ZOAIzkaopLm8PQ04sPjPAasr4vTO+dadwkp11FQ7xxartz+SzwYaI2uqa1sVIhScbV3PXzBP5YRHNVImyWjQMb6iA4/s13oLswGxZYPO5f5AIxh4QBKYnO7B2z962rhJzPbAdsVbViQEuanT5JlrMzc0d8sZ9zCBs2z2P8+4Cq3bNbA413IPyTOlcTYdk/tThXlbH4oaDYn53K3u1kwlXX3v72xpkac69XHOFeA+mg74KyV3th+PgTTU6ddGGBIv5ZzJKQQO+3ajC4NH/S7/uon7hyMG4AduOmbEjNrDEm8sY2KXYd7RuZcyFKsEE= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:31.1145 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9848f6ac-155e-40ea-7894-08dcf92b7a83 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: VI0P190MB2235 X-BESS-ID: 1730324434-312176-19304-20366-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.51.237 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkbGlhZAVgZQ0CzRyNQ4ycLQ0D TZ2MDAPDnJNDnNMNU0zczEyNDUJNlUqTYWAFSwgGtBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260091 [from cloudscan15-25.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=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 Checksum Update module updates the checksums of packets that has been modified in any way. Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 20 ++++++++++++++++++- 1 file changed, 19 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 e076697a92..efa7b306bc 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 @@ -270,6 +270,23 @@ static nthw_fpga_register_init_s cat_registers[] = { { CAT_RCK_DATA, 3, 32, NTHW_FPGA_REG_TYPE_WO, 0, 32, cat_rck_data_fields }, }; +static nthw_fpga_field_init_s csu_rcp_ctrl_fields[] = { + { CSU_RCP_CTRL_ADR, 4, 0, 0x0000 }, + { CSU_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s csu_rcp_data_fields[] = { + { CSU_RCP_DATA_IL3_CMD, 2, 5, 0x0000 }, + { CSU_RCP_DATA_IL4_CMD, 3, 7, 0x0000 }, + { CSU_RCP_DATA_OL3_CMD, 2, 0, 0x0000 }, + { CSU_RCP_DATA_OL4_CMD, 3, 2, 0x0000 }, +}; + +static nthw_fpga_register_init_s csu_registers[] = { + { CSU_RCP_CTRL, 1, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, csu_rcp_ctrl_fields }, + { CSU_RCP_DATA, 2, 10, NTHW_FPGA_REG_TYPE_WO, 0, 4, csu_rcp_data_fields }, +}; + static nthw_fpga_field_init_s dbs_rx_am_ctrl_fields[] = { { DBS_RX_AM_CTRL_ADR, 7, 0, 0x0000 }, { DBS_RX_AM_CTRL_CNT, 16, 16, 0x0000 }, @@ -1724,6 +1741,7 @@ static nthw_fpga_register_init_s rst9563_registers[] = { static nthw_fpga_module_init_s fpga_modules[] = { { MOD_CAT, 0, MOD_CAT, 0, 21, NTHW_FPGA_BUS_TYPE_RAB1, 768, 34, cat_registers }, + { MOD_CSU, 0, MOD_CSU, 0, 0, NTHW_FPGA_BUS_TYPE_RAB1, 9728, 2, csu_registers }, { MOD_DBS, 0, MOD_DBS, 0, 11, NTHW_FPGA_BUS_TYPE_RAB2, 12832, 27, dbs_registers }, { MOD_GFG, 0, MOD_GFG, 1, 1, NTHW_FPGA_BUS_TYPE_RAB2, 8704, 10, gfg_registers }, { MOD_GMF, 0, MOD_GMF, 2, 5, NTHW_FPGA_BUS_TYPE_RAB2, 9216, 12, gmf_registers }, @@ -1919,5 +1937,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, 22, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 23, fpga_modules, }; -- 2.45.0