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 C77E045BA3; Tue, 22 Oct 2024 19:01:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACF8342686; Tue, 22 Oct 2024 18:57:10 +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 0BD60402BC for ; Tue, 22 Oct 2024 18:56:49 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2104.outbound.protection.outlook.com [104.47.17.104]) by mx-outbound40-26.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Oct 2024 16:56:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BkivcwLF5olaqx+r56gCINUAlO8ByOylhWs5kD1HuIvQqgBgL2HiaLHBmEmyB1k0/145WFXQC8XIxJg/Up7kH9TbtusE1gMqKk8t2J0WaLjmZW1OPyYNm+CjD8+1N3rUAZF+v4Kt//unuf4nM9UCaoUEaVElUrHVHTq+TWQ0KPwcc8oves2WWgu51L+0N0Jpz04IBgGgEVGFXIGkmHzgXOaf9cist1r2z/LluCrqu78hScYr/g60LAd1aij/OBxsYNfg9maw4at9t/Ga3C43CiMKrTkDW++1tH3iQIHC9lN89kF4OqDT2VhQldTquPRLMCYWC0oNSRvEA8Z6lbR+CA== 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=lMPe52Fi2PExytp0No+WfmJiZEbwF23y4vyOjySNJu0xijuVKC5RdyBaGUA+/Aa9aKl72EIhCaPtH81uuC0sSgjxlstsgHNuXKZvV7Bf9VJNtab7px61xPM4uH39BQVse7d8PshpvubkrwCOsKxHZnLlqLCYcTNWIlUz4FlHudr+lwrKhP2UAUdAUDTzMrYe+CvjEyDnAREwA8iLgid/R6EzuPJpN1mgpwtvH3UUge/3MLVM3UqoIgOKDbWyH6os4M5ZfC6Y6sJlwzcK3ynVgVq5DGdpS6nVwhzc+3C/NRfqSk+EgP/smeCZJrdYHZLTODQVk9y7iaTvFuCXi7ldrw== 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=HyEkO/iow7TMyoqY5SvSoOtZ/Q2XTrQE+fK8Woy8e1zhz1qNhyrJBRJLHRCECksTDmdQRsaXrz4tJfU3mrcE28IhuuFWcXckE7NUAybgwA06p2X6JOTSJq8t8DJwV0lN6aNBIPfVZbXGzVqNqDeM05NQm7io102yXdIb7gANS2Y= Received: from DB9PR06CA0018.eurprd06.prod.outlook.com (2603:10a6:10:1db::23) by GVXP190MB2230.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:223::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Tue, 22 Oct 2024 16:56:44 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:1db:cafe::d5) by DB9PR06CA0018.outlook.office365.com (2603:10a6:10:1db::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Tue, 22 Oct 2024 16:56:44 +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 DU2PEPF0001E9C2.mail.protection.outlook.com (10.167.8.71) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Tue, 22 Oct 2024 16:56:44 +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 v2 41/73] net/ntnic: add MOD CSU Date: Tue, 22 Oct 2024 18:54:58 +0200 Message-ID: <20241022165541.3186140-42-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241022165541.3186140-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241022165541.3186140-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C2:EE_|GVXP190MB2230:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8f90e9c9-9915-4099-5326-08dcf2ba8246 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?jkOqbSPrfGkhF53i1KqR6ouwYG17r9wSdzaVFMWWDyzFPz05x/uzpq42U/FF?= =?us-ascii?Q?CmImTQHLM0UqqtSXB9wn5+I1HvwHV6RcLTwF6nzF7VhlKMCla1z2kfLkf4xE?= =?us-ascii?Q?UbcIn45crR5nC4IoYXYXY8eI0IDzpc3k9UvzwoCOK5ftzUqoksXPLH4lb/g8?= =?us-ascii?Q?b0c0hkFql1FtVoP3lqB79pSR2Ur1NyNDQO5oTNlmCpXogVNy2Ndk5u5qIN4i?= =?us-ascii?Q?2RcOnuEOBHX8o4vTGEXig8sAhj9u2SIc4d3OqKVOBIvp1VPZb7hfS4dhe8N+?= =?us-ascii?Q?bTmC6hS/X2AxBA3pDOoa1VBlXbJrO1OLg1JteP0nhgIawDznW5NcODoUolCA?= =?us-ascii?Q?lJTcQh/zkQUc6LwYxE8wS+bS6hmdR1v5lnvHlnlGUJfPodMC/MD1c3QffZTq?= =?us-ascii?Q?aANp+fF9VJjP4y+CmuAbcPqzpKe2oY9d9lFCzVN8dFHD19HAHknF8QNLtKnw?= =?us-ascii?Q?7NGAQyd5foUriu5D5vUqC2StpNyz9lcGzJxS/ZHfqLs3NuKmMFtxF82h53nF?= =?us-ascii?Q?RuKFb/ucdxvlUBG2XFUjgdiT9GUr15DNmUz6VDsZ5Os2Utd7DKr9n44f98pH?= =?us-ascii?Q?4V/h4MsmNt4DYvyiEWuHeHRcfFvEmkYXcGQOd0VSNGk89y60+V0bQdWLRYEK?= =?us-ascii?Q?goCP8EHVplLnSM7gizI6gh008y1cEOluSQ6qRzGbOW0QE/s7nEwn9dTDkZOQ?= =?us-ascii?Q?ujkF3HGlECXtDxZF0fEMMNXmt/VTY9QSTi9jRA93wyIixvqQ0MuYFd0sGjUW?= =?us-ascii?Q?IXPPrSCTDqhDAfppW7oaIPFtaRfZxEq5ooXU4Qpa4E5s2l0/PNEAL27Vipmy?= =?us-ascii?Q?1j9MhnPwOOQg0Fg7rH92w1pIiqfBHz8vMxnMT9cILjcZjh6kunZc4IiaYh96?= =?us-ascii?Q?vhUqx8IIcgcw+iyfI9W28ql2nADcq8ax4+6GKZfT6dBt+2V03awou+fLmAMm?= =?us-ascii?Q?9ML8qZpxUmWE35LxpUTodeC3Y6qK49amvJnsXWfxCjiuzW6KPfAZiD6QtT0N?= =?us-ascii?Q?hYzumaFWn7h6PjBjIGOF6IZHXrTq035BRV8cz6c6NDRJhd9nu9IvZ6gbqNmK?= =?us-ascii?Q?Enz3FHYW7lkkfTc7WxXO3DgQfvuzZIReFvsEiIvkIj3wl9tJ0SKfzaV1i+2z?= =?us-ascii?Q?mG6hqO0e/wYAlKb/CWsjMklO0a12e5gPaP6TAoHBKEvS9JvnhN2ZnkB78aQx?= =?us-ascii?Q?gHxdLG1ClMPcg2wVu+zQ7bR+ovRtr2/BSh6M1sfB+m2YLKR/dJPPoQeyNaKi?= =?us-ascii?Q?svNFi5ca3fd8Ujvw9StF5EjBFH3cdSJdX4Xbu0q3lt7QKL3SmYwbYy1Y5GeQ?= =?us-ascii?Q?JPkT0znaMo3DzMYyNWDfXDrz42oy2+oj0k/6BE4PmKnHbdrDBkuBelPp/+Rv?= =?us-ascii?Q?S+d1OUwDba8e5DHxGBdHMoX8D//l9TRp9L8OWJMxqhyvCqf4oQ=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: PAJTiXq7qlIivjn6gw1RDq0J9BU0XcGHH9dvbVv7B4zbwSitXpr41ngEGV/oNFyEhKE0i+PivPahdJTvL3s/L5d6AdH/+CexIDS/Z0VwU8vj9gnf2MNx1xHs2DnSWtEV30Xuk/acZw9THdNWfrX2vVFJ//JGGfdclE6Q33uj2g+geoTzZDNkF10lEwz/hIaS1oSWO6GgjZf8x1JpeEdxtVDYuaviMsYqSs4/BGpIFETqeUuUSBk9yOaBvUs4ko7WSe5/zMvNbEJWucYl5OljWBe7zzeWxOWDA1750Li0feIvNYWlPRAPze74/mappAweozUjtS4SucOfZZY5fpRjqQLsOUS9oY9u6THB6PWMm3H2KixNuigJi3Y8jYtP8pmX6HUigsUd06WNH49wnucnp7F+LRLR7EpYBUEdfNEmZPaKke+6oyuz4Hv0q0tcEtLg5rrd5KT5Tj20bjGB1PtKHuYZRHEz4b2VX7yXA0Ek+qX2+x68To30nbAA8x7k9a7orkzMMc2XvonMEqwBDVSBlCufFbbQJmHgyW+2DY7xRe5nNQSAK2NqqYEx5Iu5CoSgTxV+KNyCfYiDYK8mzGv342jEym0lMsfM9Pf6jsJ5XDw6/shIJOXCzsrFOXDWk+eenfuocewsud+EZ0UqIqQ18993grhzDIyouU6ERPS2Ilw= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 16:56:44.0128 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f90e9c9-9915-4099-5326-08dcf2ba8246 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: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP190MB2230 X-BESS-ID: 1729616208-310266-12676-13005-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.104 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.259902 [from cloudscan23-115.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