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 2BC0A45BC0; Tue, 29 Oct 2024 17:48:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 517D642FE7; Tue, 29 Oct 2024 17:44:29 +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 7A57742F23 for ; Tue, 29 Oct 2024 17:43:37 +0100 (CET) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02lp2108.outbound.protection.outlook.com [104.47.11.108]) 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:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=n1BN8FkTxjpnZRSS7S1jaP3Wh/duk7h2TjfQ7Zaa3BD+C0vi7alQ/j7Bi9tvvCHmeAdJBzO5xflU8aZTSC5PbYZ3/GKye5v78WenX/qlqRx3IQD2RnRSTs985wXbcpxT+awPvdY3Y65+IdPUMfmGSqI8bIvoUFdqWMaoHDsAGykMrgjeBSMid8ZFurb81Vx+VYqtSzqHGu8kI+TxJcZVQmLuv69qFFNyYipdz0b/OCRwwfqHgRuZkQV1K7NHCLZBpbNwadzX4rvfwSuhLbgAPHf/WKkb9DBiSRMsw+/+Q2zgZLlQn/HLY6rtZmrfAA1Ge8IAx49MKR/vgYcl6AdPaw== 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=OFTKlhUKuewWD37jw/+IQwQ/K8urxIuWdbrE2oA33S/wA3hanuJk3TKV64CWK9OtB3+xokbz+ygCxg3mz+42+GktGi1ld3yHTb+7TrnLCSD7foEwnDfNekgBUHHEkwO+GUEmIza943MT4Wp2XgDLWLncNbiN0MJqXy+amqjJqzJq7ErEUxMB2ADblDa9jYtVVuD9Mri2/NzYOGbgaA3j/v0OeHRUe41rlioyQa8pPMt4zMdJMhsLJMIfxPfG4YrwggSsUCb+RfMu8RzgVHBEyKFIwgRjvTCrKBlIr58G/Or/MI/5LO0jv1h0CswKOPHKAV6Jd23d6/Xf9IiFRe9j9A== 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=WVXJZf3KnhnQ4mZMkJ1m2t2UdYLrOPjVzVKwJGZftvKY/rdxnKSCbNZoBVvL3FvtRjrzLzv1AEJifdZrX6oB7txLCBxyMgoj+mbhN7aBCFWwsuvO8DzjCC1cCWPSY29PXTL5SnJ8q84wsJlPW6SvyOl+A193I9TH0uPNMdFZagw= Received: from DUZPR01CA0193.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::14) by AM9P190MB1297.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:262::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20; Tue, 29 Oct 2024 16:43:33 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::21) by DUZPR01CA0193.outlook.office365.com (2603:10a6:10:4b6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.29 via Frontend Transport; Tue, 29 Oct 2024 16:43: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 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:32 +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 41/86] net/ntnic: add CSU module registers Date: Tue, 29 Oct 2024 17:41:45 +0100 Message-ID: <20241029164243.1648775-42-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_|AM9P190MB1297:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 279977dc-b5c7-42c3-a942-08dcf838d3a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?oKuZLNXtIdsKDH+fvoKZoWID+/9G0SKwjns0Kfallr2U9ngrokoeBBiHv1gu?= =?us-ascii?Q?c19v0jOiqM/JA1thX2HLcqRTbcHZvD6H/NZDehGYMjRsM0QhVSJWwjjXMZy0?= =?us-ascii?Q?FXQ+UJe6rUwiaEbj7sUCxOM3t0QYvnNVPeXLQFfCbTcsphrVR2U2PqJpZgah?= =?us-ascii?Q?55wrfu6mhv1I0PQjYyg5knArgYzHlkSE3xfmFWhbBJJeAj91+NVC4RVaDWia?= =?us-ascii?Q?zxukF1T4YrBgVnxo/ebiOy1OVG/N/HASpX3/TL6CuUQAb+UywZ9YBMxrDqCr?= =?us-ascii?Q?TleMxF0TTJApklo6vYlLLBKXQj0jIqbwQZBVlAmKB4gIvkOID9ZSnXme23DY?= =?us-ascii?Q?usV4ffzEa+/XUAc71tefHcgy321/6/D/8qJPqs3B6fk5qxjvQTuOmO/q5jJc?= =?us-ascii?Q?k3xXKBUKlCQl2epFYKbbZEwE0S0a0LtGVDZgv0sEQCrRBkhTB2QXzsDdZwPa?= =?us-ascii?Q?XqfAxKlXVDKBKnfa7toHlG0RgyJ6xQ0NaSVdx5trZ/urhBzaHLbnC16IAkgu?= =?us-ascii?Q?b1VODLxPCPJzI5bTq1p4QNElaAwjeBV7ErxMruAt0wmVyQCMbGIok4Nrbqjc?= =?us-ascii?Q?hiQhgFYeMylw8f6lVVcbGAMX/8OpOAfKCsFmm54InyNG9Rf5JY/YSmfdak4K?= =?us-ascii?Q?sPRezeyxhXlujcLyfoUfhGVM7P2MrpDC3sOMnAT/UaWyjIIEGPz0ux5LeR3P?= =?us-ascii?Q?2QZFIAefL64tq2Wxnt0kQF6AwvwsggZ0xC2n44nQyjeKbZ3hWnuKQAM+9a/n?= =?us-ascii?Q?Z82zYNzkbWozHVidIOQa0yxRxNm57gD0+4+jHRqvCRVkJbWGoMN/2v5bDZxt?= =?us-ascii?Q?+VeFxglaLRxem/2A8SzuuM32+Tc74SW50nTbu+KjKS8aiXt0ANe4OyZLJhQk?= =?us-ascii?Q?y33mj21EZwiImyw+QLCAXDqpmVqHGzOPWO7Y1r6ScINshgQ4PS16dudnVqpJ?= =?us-ascii?Q?BVwWXROpi3YaaVqQmnfFUuapnyJsESvnMnMN5iTAgx/HEMVQpq6wykZ24HuP?= =?us-ascii?Q?Z69oRfDUsDh88vc71al/+DUA5tkVO/oL3j01UsJXnr96xnJRpkMmwX8ebtD+?= =?us-ascii?Q?QOHrMh6F/X0hZnnYaimUlnnCtv88c50+iyq3b0KwxHN01D2c7KD7MQlDWFnn?= =?us-ascii?Q?8DRp4HKXkKBlwqb7Te47tuT6BV4m4vad8QxCerzZc+2Y4wOcsUVGHoujIKlz?= =?us-ascii?Q?F938arFGdcYIBT+uiFgAnwd3mvs6s9MjcIX8XV588GjbwRc/0B2xx2GoMmg0?= =?us-ascii?Q?cqOATj9DRRnIhs1bvhfEssHjlK5NE/bGFGH8WzjTPbGiFoUjfOzdO9cf7jNs?= =?us-ascii?Q?LV3qQ3g3nOepdjnbMk4JfPTYHgvMRhxoBe9yVdSv2goxaXett2eSSdoKxgxz?= =?us-ascii?Q?zLJ/LEeqieX/SN6rC0IU9x5h3/GzPuZ15f+Z+1a6yOUdIFqosg=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)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: uNTGrAYphyex+u7p2PQVEIyoHFaFXHtrIKdwNtlzBRoMVH2Op7d4zvFBnIy3AFpIVLlGZsSxFNioNUk3kkg6okZ2ZbCiqAAXygfsbDc9toHjPsVx1CGCS7YSxTj5XWS7ovTqO7/OsvCbXEMy0PwjZqtB4moGSvzof/flT03T/BCePOOxetjKkykkAUu7UJYAvd2YfJ09hCikNYMqw0pdtJ/fv8wXAALWv6/3WOEybnteaZHw81YrbiaCP3Vx/Tq/XkRu7CMZ/DAHG/wiUuiorYoIPXxIfKEKuoIXt9VyrZSdbiV7hoYkvOFQoWs1TIR7nhle/oL77+Wds3s+ISVvv7RIG1Ct1kpU8IwYHEmgImp8Pq9GS9emAtw97LcpOBLEngvBzeIr+5YO/YJn7BTlMJC7vhv4fqVFrRlaEzpH2BuZiWZZjpaDumTJ96C26kiR12gBEyaCqrNsqm9IedILFJxMFRABqYdHJvd4Fw3o5Ci+ea8IZns04e0aQlNIMHpO2nBsl6cRQyHcg7OM6t/aLVX4fdUKNGvv/QNpR+2224DAP//IJf5yZbYGWspMvxlHdsnbLhokQCxxnLSXyKMYwZvDnlO5HGIc6QYgM9Yf12hu3kkic4i1wt2fMbh+cqGs+Cm0WtptVYgVAvmo5N1VSUgJrw4OTgHFuqP64k6xL1c= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:43:32.9177 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 279977dc-b5c7-42c3-a942-08dcf838d3a0 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: AM9P190MB1297 X-BESS-ID: 1730220215-311207-12673-27852-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.11.108 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.260063 [from cloudscan13-243.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