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 4B3E945BB4; Wed, 23 Oct 2024 19:05:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C315B43009; Wed, 23 Oct 2024 19:02:03 +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 E6BC542F79 for ; Wed, 23 Oct 2024 19:01:22 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03lp2172.outbound.protection.outlook.com [104.47.51.172]) 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:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uqM/wNKwQdyHiTOMWkuAv/mCfWJmtjZndjKlA2pxuiGn7oq2S5MDbOSGBJ3jsLvFn/MUCh3CRZIHqtUtIDgEloIyXpwjhyfWG+4cFRondJjeBLmcVM2WDCtJvQ0PW38+dpw4mWxhAI7iprXcaP8YwzbN/rE8nN6mnFSevvCgP0Pgkq80IysD/fP5xeX1HOPf2COsHbQ9nohNsKXoG5m5FS+5aWD9z5FYV+9cTdUi+rcFK3IwhZsBNQmeM/9+2gNzhbSA9OSQP7NwufC9NYWex7D8gki1oQ1j9W/1HHgTKe6YsMLHzGFrXYzsBKZAgiBbS3x5gHJkxfub0kcICTjIpg== 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=Gs5SMPGYMEl9fUtIb1hrZy/oRyWTeAPM4xoGIRCVAgXZZ7ITav8H79NW4JtSqtFlZQkV1H5xastYFvt+Mq8giLVtruFyIN8uAxVFrVumEZMrG2BKX2oEbm34Iv1v7vMcHUkYoZwKmBin551UsppvN47CLGAQg4aMgN3X2r86vJmLC3TZewO8PG/t9EzZmFTIkCV3hQYpNe0Y78ZJk7SZWd2sJyRTKHEfUQJ0jRikNvpERDKX1SOv9H1iU+30h6BkbCeG0w+ZGF1n6PY/cWyDZtn5SwhAok3GBupEWz1k5LExKaR90We+HtpDiUWNX8I4nTRXrmQPWqEqDeMRE6xDJg== 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=hUqzMSUlryn3dWRqfbOMeWKWgqbW57YRx3uTItTvx3cE1+2rdcGWC0Zdigja4NV32QZi8wjXePbn335YCSIIGsW3jU1cT3PXJaGM5CZ6ajbsHvRYOXMn2H6gjoh0tKBVT6VFKO0AS+V3HmUBEkHSXe/+Om4K/DjCZD32F6V4LMw= Received: from DU7PR01CA0017.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::19) by DB9P190MB1988.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:39b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Wed, 23 Oct 2024 17:01:19 +0000 Received: from DB5PEPF00014B9E.eurprd02.prod.outlook.com (2603:10a6:10:50f:cafe::9b) by DU7PR01CA0017.outlook.office365.com (2603:10a6:10:50f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.17 via Frontend Transport; Wed, 23 Oct 2024 17:01:19 +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:19 +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 41/73] net/ntnic: add MOD CSU Date: Wed, 23 Oct 2024 18:59:49 +0200 Message-ID: <20241023170032.314155-42-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_|DB9P190MB1988:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 5a52b965-11d2-4cc9-6c08-08dcf38450ba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?MwbKG2dI/wQ8FGpkGKPEfPIHwRX/K9pWhTDmcs+LMW7we5OwGOq16ODchoVq?= =?us-ascii?Q?WErUm7/lAyO840eG6eQzTkK3ZRZL829H6K859ewryd0TL601PBJCtnTCMkx2?= =?us-ascii?Q?EaBxKz/bLUEhCcE9U30qnfwkOwiCs05Q3eSNQ5Y5g/Map6rcfOLr4zjsevUe?= =?us-ascii?Q?f7tcF6hqzalDexbj0C7+24zmQ7gmMy1RJ46oCj1BydsGOKRoH7rDJPQa69wf?= =?us-ascii?Q?WSl6PfX5oIxyCxPsZeBkawR7Pm/xihW6tfPSU1YiptZLRz9BqktzkS/66fEe?= =?us-ascii?Q?Xx4zh3mgRp2/432QevwauDShDpxy78Fii91H+VQI8EGK9ebn5LsRy43owvcH?= =?us-ascii?Q?R5elnlwpAFFQh9MSy/l7QbiKB4/SKMLVhlke+xQr7LkB6Zi8JwZtlKvk9NTT?= =?us-ascii?Q?F/xd2h4bXGW1OkwjMPEjuDyYuBbmzHyoryJBhq9/WNqh12y7ymycDdn2nP6S?= =?us-ascii?Q?TK8/+4sPgAZ1ivENCtnylV0bsUTb2cOLZtbmMmpH2FVc398pzv+HQj0ag8pp?= =?us-ascii?Q?NHTwezQbxPqwxruWhq1aRK/LNBvkSlH/LCsmlnp5PO0mnGD0LqQDMOkugmcP?= =?us-ascii?Q?4sNwP3CasliJwLgJvuwIPlRLJUeFuK9xvNWAIhN+YMPxqv2GbTZVbdGcNKC1?= =?us-ascii?Q?TQZHok1qdRzqNMsfDYYfNvl9hU2I5P7kXzqQLPo8XqbfpRIUswWbCGdDJyTK?= =?us-ascii?Q?jleyxTJ/blRjDstq2SFutvaLAi79YW7x0jm5nOWUXAbrZlC2MfzhXTGMnoto?= =?us-ascii?Q?R/cw7VlbnN6Uxs5qEN+8Y+YnUHOmyJCSVuf1Vw1+oTpHy+h0iI+r22XvBa4d?= =?us-ascii?Q?AtaxXWhIdFr9rE59l4NYugFZeLS9F1pu2AT6A2X1QldQ35C6CAworlumPpVl?= =?us-ascii?Q?RzVJip1Cr9lyjl6KPv25KJyWeTU9f99x3gGFCXnunb7Ufd1Cd7a2nHt8nV8g?= =?us-ascii?Q?HD5KEu3umcgM0EStR0jUXCFm2xYTu6dweNpbqOpmLaUPQsZXYc5YJR1pRWZ6?= =?us-ascii?Q?+7vcs9lVm0Q6dHBf710KOX7+UECjw/lcwVEn/fsrNiFggzG1St0uwrZnv0fj?= =?us-ascii?Q?AeGNKc3k42vGESfumpz/B8T5amSCBck0G5bSTpAEvmqdu1StJLzpHJmfP82h?= =?us-ascii?Q?qV1BqF3pkaeF/KwxRNQUSbsnXitqA1Kjcgq2oyZkBut0bnIBfPtZbz0tcTM1?= =?us-ascii?Q?69PDYbTIcHYmH788Fm8EWN7KavwPSfySIfos6gM4kqM6hjDB5QG0YmCJ1IN2?= =?us-ascii?Q?EgV44v8/CHZkXB24XzlGmTz2wANIk1IkkP7uoJJ0YT4kxvcV+EfXNdFda7z3?= =?us-ascii?Q?qVCPTww1AHr7KUe3kmYC52fuge93oLWIbs2/52UMtDmoMNS/5gGP6TNNSez6?= =?us-ascii?Q?k7PUwPWgXU0s19QpmkUKI7J9ZMqUoshlgcP//xS+cauCp0hESQ=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)(82310400026)(36860700013)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: HrZV6XpER4uRJ6HzJDDRzmtC1wqhESryRfr3yauvJOGJTs37DGU4u/JEemaee4CPsWcQvEt5qrVgzdqmmp2DvPDticUVWEDRZuCWH2rUS8yAWi/ZPuaMv4Q56ZLHHzVwe9aZ0ERjh2zaiHmS48YvsG/2nyHz0pakdcue7ZVH36vFGQBce2O7YqaX0OowqZZCKov4wCaQ1ARPnKaII8UoHgSeyOQbdM3i45/czXZX+pRCqccCLUZ9Glzcf0EsAoE8T6vER2fDaovYqVvissPo4Jj2F3KGDE/nEySkh5EI9THVF/wFzYmAJJYU8C0M7fxppfvr5CwIw4JktYGLe+8q0R1JsyByo+mjeipQ5AR32m6SU2p4zVTCbFzQhBIjc4gQP5/OB+jgwEjYX/W8RxzlZ+dtiQdhjokTRVEeXkFh136ibFF0nOg3mYQmtV45Gx8rWcsVsPR1ZUrwAfVd7O1jUERC8Jgcyn46j7NBietTQbKAmJ8J+YlPgX7G+DRgPRt2dn7sw21OWjuEJqdiM1aDzpxSNmLFRX/4usUKA0N+Z9y02ia3OwD353eQf8L3sadQagIZnRPG2knDIpGy1AGUvX6U7Wh00SfVevq7WJm4Ag8IU4+6PNYJ/bUFH93kQRNhju0F6HT89sxRIYOB2UiM1VxPE5R7dXqFevHTiJEpj48= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 17:01:19.1645 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5a52b965-11d2-4cc9-6c08-08dcf38450ba 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: DB9P190MB1988 X-BESS-ID: 1729702882-305394-16206-13671-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.51.172 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.259925 [from cloudscan19-83.eu-central-1b.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