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 3C14A45BCC; Thu, 31 Oct 2024 00:13:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28D04434DA; Thu, 31 Oct 2024 00:13:08 +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 61AAF4028B for ; Thu, 31 Oct 2024 00:13:06 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2169.outbound.protection.outlook.com [104.47.17.169]) by mx-outbound17-81.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 23:13:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hT16HiVummp62tkyfSzoPNzD/QSNDTi8lxDLOS1XJG2nDXJLd6vAajWT9CwLF3cM1WBR49T9mRT2lOFIcJAYXRpQstub43ZFVWNEfGVKPCu+0uQA1aVCJR++XjtemUj4Uc0Ejny3vpBm1mBrwayCS7hrzF7eMR+c8kSU2oqblQ4UDA8Bra0yMJtd1XxQEUiJKO6rOqemDHvRx+JbaVsuBi90Lz4YW0cF7rmINhh9gOKxnh6z0HEhnFMujygN1fS+YyutYbVukTMcpJ67TBecIiP5OJeaXR5kjP0h/zde/hKtSddVVB6TL8GvQv6d66qjATzw/3ve4/B06W5qkr/VLA== 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=Cgu7eD+yOTDMtyC9/2KrrgsuON5W5WCmoIoerwYHaNM=; b=DBIXbcgUXa5RQBbRRQwhk8MrJLmkGFuPwElrvBQ5E0CPgT+71+q7svwp6UhMcR6WDtBtdPWXgUD4jGkarlYkig4GZ5PRU8eqqp/L26hP2jPvudMab6T22LdqcEl8mUa4gB9zh45vu2WO4wMsSomeEmRUjhHD8u56dGTAi6+RkfQj6w0TTcgifqvT8o958ay5ZElksUmjFQcs5EQPDfc00HiVvGAC8X1lpXewHW8OVaR48wjGwogmwgW3gvWZVpwLjUP1tS6w2MHYFrMdOsl7VS4wuuqYFjUafFFqRZE068moCexMyu7ppx2SsRxJOOx/DaYZ5BGRCQbtrnZtuWaTgg== 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=Cgu7eD+yOTDMtyC9/2KrrgsuON5W5WCmoIoerwYHaNM=; b=hlROP+OS8FD6SFPP/Oek68GzQ0nx8p4O3cQEPCN4y5PVFMABxeBCDIKyhtR2BSFdquNDjfc/Akvri+96wkf7HF/pM82RbS01ag/3aZaMhRAu6KRSiVPbSSLojm8yRMCwC9UouaTyqU1BsDr0y0jBMLaW5xH0HigOt2A1C9Ff89U= Received: from DUZPR01CA0004.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::20) by GVXP190MB2016.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.27; Wed, 30 Oct 2024 21:40:40 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::f1) by DUZPR01CA0004.outlook.office365.com (2603:10a6:10:3c3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.22 via Frontend Transport; Wed, 30 Oct 2024 21:40:40 +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:40 +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 50/80] net/ntnic: add Tx INS module registers Date: Wed, 30 Oct 2024 22:38:57 +0100 Message-ID: <20241030213940.3470062-51-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_|GVXP190MB2016:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0f459324-621e-4e0c-632a-08dcf92b7fde X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?B5mqA388/UC9lCoWPsjv/U4OhJsvsE1FC9KqYvCfWAShuOcuZJLMcqWhCDZA?= =?us-ascii?Q?wUpCQ50eYFdp6peUOQUTkQNPV8G+T5f3kQCILTseNF+xRAtpaGcRaiFvQBdQ?= =?us-ascii?Q?k+/v5HwmBKgbHlC0LjHiGRfoR1HZJaGRttkwS+uZsZlro1IElo19WRoRfMc7?= =?us-ascii?Q?zUfNCuWtYbuLei9y9gS+yDt0m7j3HPyF/SuBMG6LfV38cfnWV+xZH7Q2STxD?= =?us-ascii?Q?dobgrpdi3HkNJMYp+L4rM4TZaSxRM6a/gIlEFzu+Lv1TsvT0oIXvFNU+wPMZ?= =?us-ascii?Q?h49r4dyFxR2qOEBQOhtr4nl217yjN+jNjJxgYMGt/YNvNaX4KlgZYO8KhAbE?= =?us-ascii?Q?xdFl9wh/0rE8FCuGIMighUrbbmP5j8RyWw9J/epEiJSY0RkL/kuMyVi7N/ES?= =?us-ascii?Q?A9A/wbOxG+VhMj8HP/Y4ItciVFI4BUaaYWdKugvbmKauUd9BputSimydBi3x?= =?us-ascii?Q?NGEWnCFZN01OfXhL1gampbWmSfzNC3GjP6egD8waj4ZdiTphXss3CQATdWeH?= =?us-ascii?Q?p4BSZTLyx0rLjJedrDHemNXzB/XiSjyUFsUPOaXqV9P4mDd8a2CMwxDbItZz?= =?us-ascii?Q?DaF+JS3CvQkRqur+o7ik0pBsZi4c5ddXyo70nmzGlJlyNDmNGKgkl6PjRrfJ?= =?us-ascii?Q?b+lrfuXh22iwy77AgLXG6hBz6Tv49qq3+WHuZjfHrFnXTMuXJMQsIMkWZtWK?= =?us-ascii?Q?FkvS5XncyE9Wy0gHc3xWXCPa6Yv4ho5hjJRrzW96XPzoExD19vyS4DH1icZv?= =?us-ascii?Q?dOl+3FohbMd5Pok0YiBjWm/rD0qWtoZqxHHIUdUXm6U+KPIqKpQevZfaj3F0?= =?us-ascii?Q?9xEGWSdLYsEJiq7pP36O4wX2B213Ov6JKqPWXMgav+fhuKbnePPu29loRRey?= =?us-ascii?Q?/hh05+AlVlw6Y50kV9+vysjaZHmRt+z7SYv6B0qlpheorhWK+Lc4WQIVIFxN?= =?us-ascii?Q?bsaKVQs10TNlPFeIRhdkd3wcU6CNmpax2ydeAkZ3Bn+pcrgFTm9RTfhh4Uvd?= =?us-ascii?Q?/zB3t/M+x083MhCk5dfG74xRGyplkiPLHNxBq1MCsFoqvb/p8InIt3WHcGVX?= =?us-ascii?Q?A3TPeO1DMVXzjdE/WR51/PEV6ZHKG1Enjl5d8P6ZNf4kvv4w/tylip5270L6?= =?us-ascii?Q?jpS1fLoE3BM6NMTgUjGhjq24JX0f0/OXxXUwwvGMzQ2zYnU3jt29AjwHKrDA?= =?us-ascii?Q?54UVkyQL4UkyQPNBY6/af+vMbQPpF1OuAv179RSZYOuFEEyP7I2Jirhqrq8P?= =?us-ascii?Q?Rw/q46/02PdxjY+oo8ltSbj/0TQeCBtc4yIQunExMRZ9ysu4NYEi9toaqRmT?= =?us-ascii?Q?4KG9P9OaL3OaCfj5Y4+y0L/l+3QpLYHwiTduhs10dzJa8crt0+C/lPi2YE6J?= =?us-ascii?Q?L0oyn+F2zaPYT0aHcyhyiW1tkVCqglbd7or2N16cFZ8vCvsBzg=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)(82310400026)(376014)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: wAwymdWHY6XG08UGMUktDuJj0MqgoyYvkfLrCBNzE6lLr0pkmo9dF2qsF47AdmhWACcbAu0m4zQO3NK0hp+CBcA93s7jSa3B/0xbGJa4avyYkhMG3UO377rGclle21EcxVG4Q++lLh7nxnJ+6YCMUVhsil873GLK3zUZdfhfoZG4FtSwLhQWaP7X+tp+ZhyWy/eIDTdJYXzcA2dTZV5Nuim2vrG7ERxK5a2zkd+kR3htjwgBOzQRq+uUOCfcS9LebnLM8AvJ92Hxcp4UYt55G6R6FMsf/6O8YxV3QTDWHrLK6vlZuZSfPrtHcvxmoqfyn5bZRUCVU5hmYig9qmODAoZLHHhD7qAeN6jm0CrkxYAGMU35n2oN5LymuAV+8pkUzdPLIHOcXZmOvFpGRmr/uDXKvj7SOm4ShwXhiyfeNbbtAxnjqhWTHOtEjU/NCmyRhaz6pb6ouIrfy0h4hmSp/JlOA9CCLFbO3E72BajPUi1GjvIhdOwcbvfM0YddfUXDqgmqSJAq3NG3Zzcqll74Z+gKWQ3iHfow8HkB3ycaM/wF7LyTPVgmEIxrsbKyt+TXzM/hiQR2tKaDD9jTrH+WHN3mXoGfdthsZJb5hpWKyXrOhekAs6lvD2yrNnUeyWS10/+t32nJQKsAn4uLZgk5j1pmMfeXbuIyPhQNgxeGzwk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:40.0989 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f459324-621e-4e0c-632a-08dcf92b7fde 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: GVXP190MB2016 X-OriginatorOrg: napatech.com X-BESS-ID: 1730329983-304433-12637-48406-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.169 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsaGxpZAVgZQ0MjS1Cw10dgo0c TAwsDc2DLZ1Mw0xdjcLDHFKC0pMdVQqTYWAHjF8R9BAAAA X-BESS-Outbound-Spam-Score: 1.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260092 [from cloudscan15-25.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.50 BSF_RULE_7582B META: Custom Rule 7582B X-BESS-Outbound-Spam-Status: SCORE=1.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_BESS_OUTBOUND, BSF_RULE_7582B 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 TX Inserter module injects zeros into an offset of a packet, effectively expanding the packet. Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 19 ++++++++++++++++++- .../ntnic/nthw/supported/nthw_fpga_mod_defs.h | 3 ++- 2 files changed, 20 insertions(+), 2 deletions(-) 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 60fd748ea2..c8841b1dc2 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 @@ -1457,6 +1457,22 @@ static nthw_fpga_register_init_s iic_registers[] = { { IIC_TX_FIFO_OCY, 69, 4, NTHW_FPGA_REG_TYPE_RO, 0, 1, iic_tx_fifo_ocy_fields }, }; +static nthw_fpga_field_init_s ins_rcp_ctrl_fields[] = { + { INS_RCP_CTRL_ADR, 4, 0, 0x0000 }, + { INS_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s ins_rcp_data_fields[] = { + { INS_RCP_DATA_DYN, 5, 0, 0x0000 }, + { INS_RCP_DATA_LEN, 8, 15, 0x0000 }, + { INS_RCP_DATA_OFS, 10, 5, 0x0000 }, +}; + +static nthw_fpga_register_init_s ins_registers[] = { + { INS_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, ins_rcp_ctrl_fields }, + { INS_RCP_DATA, 1, 23, NTHW_FPGA_REG_TYPE_WO, 0, 3, ins_rcp_data_fields }, +}; + static nthw_fpga_field_init_s km_cam_ctrl_fields[] = { { KM_CAM_CTRL_ADR, 13, 0, 0x0000 }, { KM_CAM_CTRL_CNT, 16, 16, 0x0000 }, @@ -2481,6 +2497,7 @@ static nthw_fpga_module_init_s fpga_modules[] = { { MOD_RST9563, 0, MOD_RST9563, 0, 5, NTHW_FPGA_BUS_TYPE_RAB0, 1024, 5, rst9563_registers }, { MOD_SLC_LR, 0, MOD_SLC, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 2048, 2, slc_registers }, { MOD_TX_CPY, 0, MOD_CPY, 0, 4, NTHW_FPGA_BUS_TYPE_RAB1, 9216, 26, cpy_registers }, + { MOD_TX_INS, 0, MOD_INS, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 8704, 2, ins_registers }, }; static nthw_fpga_prod_param_s product_parameters[] = { @@ -2639,5 +2656,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, 33, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 34, fpga_modules, }; diff --git a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h index 0ab5ae0310..8c0c727e16 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h @@ -28,6 +28,7 @@ #define MOD_I2CM (0x93bc7780UL) #define MOD_IFR (0x9b01f1e6UL) #define MOD_IIC (0x7629cddbUL) +#define MOD_INS (0x24df4b78UL) #define MOD_KM (0xcfbd9dbeUL) #define MOD_MAC_PCS (0x7abe24c7UL) #define MOD_MAC_RX (0x6347b490UL) @@ -47,7 +48,7 @@ #define MOD_TX_CPY (0x60acf217UL) #define MOD_TX_INS (0x59afa100UL) #define MOD_TX_RPL (0x1095dfbbUL) -#define MOD_IDX_COUNT (34) +#define MOD_IDX_COUNT (35) /* aliases - only aliases go below this point */ #endif /* _NTHW_FPGA_MOD_DEFS_H_ */ -- 2.45.0