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 E767F45B96; Mon, 21 Oct 2024 23:09:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E876740FDE; Mon, 21 Oct 2024 23:06:33 +0200 (CEST) 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 8972140A70 for ; Mon, 21 Oct 2024 23:06:05 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2111.outbound.protection.outlook.com [104.47.17.111]) by mx-outbound46-162.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Oct 2024 21:06:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WLp/8lLQQrczR0T7h7iv0IVTTMTdW6MOm6Gi68+xo7fAZwZl5IfYbJB83PMdfVLWRt3NHIeshIhBhD1y3Pn/cZEymYfxOelbKDXklgbXTNJklWevNS6muolqiO1NiJk1I2roRqp9GszmiShqae6VJUJHB4msSjCyYt8ZmVX/891tWer5PIa7pC51qh0KX41C2Cww5zP95VWEGGY1WX2wU1D8fmXP8B1/PgemdleCj+ZedOSl1fMvP/VKvWOLafY894vk6gzuJz+9s2tr5bz0OCBElszwihPCvzE+nMVn5xlw/ajPZqIfBrMBlEIJRGR9UP/8m/7n3FzmMhB/vcYc8A== 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=tI/527PDyzUaZRNihjdZNbL+QwRHU0QxkN8nfTEyWuLQpvRAJ9GGwA7AH2Y002YO06VirZSZeZOa2NzHbdnoOKlGOG1Dny9JQffD2ZYs4F9kHAGJ9kTgcPMukjxQQ012dq5o45Ei5uPQR1E66B4vcBWoqWOe3GlfJtUIENQ2xinRX5XtBnwMGLBkj0P6haA48tCVTHR5pByMG+Rc52G0VrxABv+y8Jobh+udZUqVKuAqZLRKyfw2yKS8Hn91UeBF4nb8RLZlO0ZyBjwU79P58ae/jUVyOM4qEYlLBQRNeThHM1x8sRzHeRC0dAPuIzld03wm/MyzSVZ14CaTnQdrLQ== 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=M5AcgwJ6IRTNAerIAv9GF89cAx6FbHWc7K28PMgASTrMHl2OZA5OXU6D6fAx1/V+DZp/KtSKBCmwKFHZ2eX8EgL+WkmW6GCzypqhd3NnoFZuaVMbC9SmYm4lvUYBtUW25T1Uc2AwibgTYUtlG8PaX5uuQUlqpUxWgOvTnAyKLMw= Received: from AS9PR04CA0146.eurprd04.prod.outlook.com (2603:10a6:20b:48a::19) by PR3P190MB0841.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:8f::22) 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:01 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::4f) by AS9PR04CA0146.outlook.office365.com (2603:10a6:20b:48a::19) 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:01 +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:01 +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 41/73] net/ntnic: add MOD CSU Date: Mon, 21 Oct 2024 23:04:43 +0200 Message-ID: <20241021210527.2075431-42-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_|PR3P190MB0841:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d6b7e864-9b51-4f1f-b627-08dcf2142ae7 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-Info: =?us-asc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IXKm+A7pG9+DubfdY5l?= =?us-ascii?Q?/zfUyRB8SVLelJVUIeL+Gv6aLg+wnQUlvNyFQj1xq1EkCUaxlTBZez7PgUS7?= =?us-ascii?Q?WV3T5tSH6FZg1ote4Ch15FnyY5KK66hQ2DSLoxtGvyfsVLXePKrZZq/EO6jZ?= =?us-ascii?Q?vbOvFD/DVJLyr25aqFMPmZ17zB7BqxWDO1PR9N5MGdwqWn6AisAGlNkzhmUI?= =?us-ascii?Q?VctBGJMFs6TaK8jJRaBN0q/BHtlZ4tFRS+/HapWiZYhHIKhkm7PFCzT1Z+66?= =?us-ascii?Q?IS+DjoLifEOSQdn/I3AuaoAagvKGt4eYyyw+OaFOtkOAzN42hSM7g3VCY4hv?= =?us-ascii?Q?aZNni46KWmfpE8bITI9wPOnC/fbHwoR5t5RAkhXuNLHlFz0GAAzo/C9Qjwqs?= =?us-ascii?Q?T+TfZjCqk2yFz/v1WjgOYgA4PZ0MpaJeylAmvecHgWUBOtSNJxVip1cVXJ2E?= =?us-ascii?Q?+ORgrjJmg56OHfagfJJgH28l+uTIzVEfagNsjM6MxBlY7mMMr/5nUBtut+8M?= =?us-ascii?Q?ImOsLlrCd9buvxYrU0xTp4M1hUuwQPJXcgCd4EyUpk8yooi+cw=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: 5yT9+3jPaRpWqkmWLpxczHm0sJTTEApum1KbV2TWH0RRsU0yD+JT3zFDaaThGzdGaO9Qnzs8HZwQkgmCu3zJW/ukZ2YhOuUcWWBQwcI/UgNxVXjFR5H6TyB7ryGt2GWRhtw3uWryvxaFGOCJBSq5ElXmPO7weB9RYhQq38+LlczMCAfbX4KceN5sYT1zBSFdC9BK2eXCFnaT8bhXtZVyXEG+6srb9dt8scZ6MKCsIY4gvKbrvflShCBhVf9H5noDpGfpsEMcuavCNXS5lrFya/KqHxPZQl3j5+Zl1BPMbo56azw/hYeP+BgnGmBYIi7A7ZkoOkE9Dji41SvzmUoEJhC/gYsZXP5pNiZmx4QA0uf1Vau7Ra+zIhPt60nGfX1vaw4jsBBVUciUjE2PyHo1OWTyIjL6MJUNs/fWSxSI4BAJjNbqrTz11Y20EPUNa8y513+WfrJV1mZPy9rDkSGmFQGEbAdizeQ6iINgbOWKhf37I+jhBbBIntw1HuaRPeyGlOiCsMpWN6F+XsG0GYaE5SvBbTFbh1pv2xJG2BjOVwhrx2JWPLaQJG49WNli0rsbU9yjCG1E6le5zLMK5jGA0tJb1wCBB2kEz6ytBd59y+W76dSp+RogE35T7vtlpbkBNglwO/fJ8l08N0HEyeOQC9L+FCRrH/F77nmBxgJiIf8= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:01.1301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d6b7e864-9b51-4f1f-b627-08dcf2142ae7 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: PR3P190MB0841 X-BESS-ID: 1729544763-311938-13028-41201-2 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.111 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.259883 [from cloudscan8-241.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