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 46E8045BC0; Tue, 29 Oct 2024 18:19:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AF5D43001; Tue, 29 Oct 2024 18:18:14 +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 5021343310 for ; Tue, 29 Oct 2024 18:18:10 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2110.outbound.protection.outlook.com [104.47.17.110]) 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 17:18:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WYYVfAL+2lwPlMUkwROicQP56jLz2qSgT8BKBlE16lBDcbPXbUclJPHUqgm4C68pt7QLDEHqD+x3d/6+rL0DHYowocf9ht8xjJ9EtTFNvUAf3BAYqCzXVQD9QgW9+pZr4fr/u2Ol9DF1oqWDQAAtSCOq/PRQnNhSyJ5EfsFImK3s1mfl7eOMcbTylSrHCXH0XN9bBXSuwPUeN6z0jkbC3oV2vn4cgt4757I+2xdYTItTJktpOdbMi4s3BR6426JoagSAGaDFoKgCNwUJdMOn280gE6f0k3BJZaT597JfRcqBj8T7C+vQdj4L4TP0aE+MIHkGnkkUFuIre3HC0VomFg== 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=XMyTpFICGgGtpSUd68Zht7C+Nm5iZbMAfcyAsfLWhgCVzZPPpkb6iU3STgmtO+tEpdDBkrnQ411GcGI7A+EbiIkPCR3ieL2li38BKZS3CQcaOxI4AFWGMqBr9W/QLKN6Fcfuwed9I/zLLGzqLlAdtm/OGlHHDrKps1upC0+0fpuCbdngt90xtWD04EC0IB8JjpPrzXAbaCJw4kZ65NA7cI1Y+FiaJS/xcMBpWp9YHCRzg32xyacRTN5xQbOdAlvzrgD7pLO//LbtZgbK7S0wbWsmZdszws7wCSD50+EQzbbinTmBdDlXlMbFGOSmdwVNySmAj5vrC5zatlOzhSes+Q== 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=gnAFxt8jXtjxCvQC75g2Tn1jOTpL8ckoIdQIvskZDZefuz0nIHw1buC3shhtCBHrt92AjTVnMfRTBBj/PoNsQOPHmD9h72G1kMZeLEvHdO2N4x+lFQ9n3Y/TSLbON5gbaoIYdVo18wyCqKFClBt8NIXSwFXc9kpks6rAmhvcb5s= Received: from DUZPR01CA0201.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::12) by AM7P190MB0629.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:11b::19) 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:41 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::ca) by DUZPR01CA0201.outlook.office365.com (2603:10a6:10:4b6::12) 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:41 +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:41 +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 50/86] net/ntnic: add Tx INS module registers Date: Tue, 29 Oct 2024 17:41:54 +0100 Message-ID: <20241029164243.1648775-51-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_|AM7P190MB0629:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4f7798fc-630d-439a-81f6-08dcf838d8aa 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?i6Dsuk/Rp4e9fCgRpedOGLIVN0iV6jaE+Iur9CMlyPLipZH+M8xD+47loGiL?= =?us-ascii?Q?+7ABMdq9t5+60JIVhpq0boEJhjPxSy/KGrJiKPtL75VM0RX3WBi96ey/59u5?= =?us-ascii?Q?V6dUXnwESGTi3cVz4s5AIgqx7CW+CzSG7mViSjhzCZIg8YrOZDWb4OoRnrjp?= =?us-ascii?Q?8jjZZsOY7tfolUcwMDSC1z3lRbcxcMmdn+cL6E4O5Ixv1HlZxSXEvw2DILV3?= =?us-ascii?Q?O+zbumAgAFppwtkN0rV0s2zUKJm4ArDeJUx0egq0eCMzWmocP3OjHs160+k6?= =?us-ascii?Q?fq+AYjAPQwvtBlDhs+9feWAUCm+s0kQTUQ0Fdo0JSGdqTCzIwN9nAULzzHBQ?= =?us-ascii?Q?MaOXcn4xW2evMuzkgMKVk4BzAi6rg6N/A+LAx20FqgnzjhKA68BmcTZDZ4MZ?= =?us-ascii?Q?49L3LDkbpwiNYokYeRe2V2wSfIXPalP83AgWSIXr87qruYhpqt1gNPeTgqp2?= =?us-ascii?Q?seMotq5r8I7TpLYYFQQoFT5LdZttNRYDWkJO9HHns+r6bhVPgcjCoouwwj+l?= =?us-ascii?Q?X8igHWI6EpeDOPNMvSzG8ZkZIPaTADrGe/evIYlhjFiE5P7WmgGmEQiiKIwQ?= =?us-ascii?Q?fiEvy1aLoc9aPwqleWxGZl6dYDD9NOvtL4/LwQugiwuM8Fp05FsHo1Jthl4Q?= =?us-ascii?Q?boZL2IWAHFc8OvHVG3xI6GioK2gqD4WGNFao0wzGoeJBrOqhcgfEW/bEqf1y?= =?us-ascii?Q?A+ms//B04Ic0Hh8ddwL+zJm2TrVqOqL3iOatUOXGZSGEe0o6jDz2WUaRhl+W?= =?us-ascii?Q?X7OFI+uz2956zwxbrPCAOLYeXQVhIQA3keFMD/MVA79yNjkvq6AIBTDlGJq7?= =?us-ascii?Q?O9OwCL/Oww98CSbAn4x4u2iDiTC7/KnXrl4yx+IwoIyNu/IgLIKccOqWG2oG?= =?us-ascii?Q?uE/yQsep9N/pofIui0Uj0lFA8OzYRINdd9UIueGiv6jXaspJm9MBXyNHxtHj?= =?us-ascii?Q?Z0sE/WK9VBzBjc6Faj2v4emLlAaxP8Mz44hqhusE2dZzv+UClhxLa/AZ8g5V?= =?us-ascii?Q?CNgsMJHo0BE/Rit68JyGXx5lMcfK3tuLMYYLig2xikv3GcQzucs05GGPQ02t?= =?us-ascii?Q?y/yUYN9F7F4d92dL8uF+8BonBhLARB4XCDP3z9qLMUZioVAEDOltct5hvrA7?= =?us-ascii?Q?X92IGTkc75fXv6okMVuPUN0qfvFkw2ErT57DalXFJuKzOSf4Lk7vM0fKMlUi?= =?us-ascii?Q?5FaMynkNW5NjVkKWxbo6gokBfvtREot5JXVpWRgXdBjSfiKrtrYe+KUsCHun?= =?us-ascii?Q?IqN7M2EBAkeddoWG9DktfQfCWQAyt/uzunb8ZkFZeZMZGGtu+bNitnsBXkAa?= =?us-ascii?Q?lkWa4yru6m7r70EqhsahpweE7q2m1xWQH30QLFsANsLox1npZIWF0kKLUCns?= =?us-ascii?Q?gKvSdb6dBFkjT3vz/gz6mrqS+Cow3yB3ADQgRCe2hMOcPLFvBg=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: 8XfYxCk+dJHXwCRKY+vhLXBQpSzANwOI0cP6NGlf9QkbDGcrCIAyLC1tYKP6xMXaDflwC/fSuG6978pmqO+m4LWAalKfUUnFqv6Eb9Bhg8K1ZAGKSNtc0J8xkvCufP1lZ/BdAYFy+BTdIgfeLD1LrXFXm+RrFhbwvyg8vW7aXtQD4l8wjLBKSLvbyhiP8K+ZuZzx2z9jdY1t+pNV0YZ3vh174NgqbfrK94RLV9ze+2E3i9HFY4k51bbkNjPGh8uweYqSgfBmWXlqnGnAjGA3SVtWIjLQ3eDIzU3c8CNHEiEdQzSsinX+SkrN3/KzQx7niRtoIh3383dXVU99PTHtfkpNdfnaHsdoWger6E4T/ppqn+sdVz8obzJ+jKhiLgUJcpvSCn0pmx1xrd69sJh6deDmqzjEtvj9BB4j3xvRhlHCMu2VJz1gOKhTrF2/2CLjDRUau+aYdSNrp+TfL7YT89MWrBENXGRJDhodciIZ9QjYTLN0pG0i4DmJgXZRCLz8+x/z4IMcdGkbH5bK6deepcCwsR8sI6bLbAuUy2189qzFOUzjQpYoRmqzhGLZVMK0foLqf/vCiU2SPJBbOE1Rp+0zVaRvTeSwBmaCs7BVLghOxPLn3Yy3TD9xxj37PMarJvhq6vTFkVS7zqE2yjYx8ejuq17ZTyhcGp9oKi4qZHc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:43:41.3709 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f7798fc-630d-439a-81f6-08dcf838d8aa 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: AM7P190MB0629 X-OriginatorOrg: napatech.com X-BESS-ID: 1730222287-311207-12668-29680-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.110 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.260064 [from cloudscan23-227.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.50 BSF_RULE_7582B META: Custom Rule 7582B 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=1.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_RULE_7582B, 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 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