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 7911F45BB4; Wed, 23 Oct 2024 19:07:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1424432DA; Wed, 23 Oct 2024 19:02:16 +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 24B1442EB5 for ; Wed, 23 Oct 2024 19:01:30 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2169.outbound.protection.outlook.com [104.47.17.169]) 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:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fJMY1EzBT9Bl+cnrSnTv7rAjwa2iAWaz1LO06G43dcDF4uCHa1vmeoyNhVpoxtE0Wxq2h5PVzHv3YF0BrJnYPdnpgrSs0UzGvjbEv0r4FhJzk0Hj0HhUTtQ01/XjeX7ebdbczgpezJGWzblq58u8GpcYNg00hTclRemfKi73QDUcuELD41g57t6akIULVkkm4uvs8KTmuadKjaMed1O/wOnIcGfXvuqAXiz7B5JaFcO1ZguD4hR8Swg/e9Od6gzPmmDBMnnFJ/LItLOoC1Lo8t5ryhxZngbLJrtq3FY+BbwCwgiVqqwGO84OekuQpSpAFN0s7BjnIEjn2GhNQ3LOfQ== 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=a/N2V/2APpLrZGf293F3l/Szh+82xR4o7Esh58Ta2SxDFyRmUYJ9LL+2Y92npuCUjhv83m6/YLxYr3ugAXt6OiDqqjM/Wffc4778OKpLcL+mITeJ0JmuT1UxdGY8fMVYoRFrBkTcYqLPZUdq+W807g1GVIzk+tQ8QVfh6N0vOrmkJ2UAb0CSqnv1GD2WJG1O+vpacs1+sDQKgMO3uQpBFb5+rhJirCg/TYWxYWSDP4jbclMdDNm7ST5Pq4Fcq0tXn6u0/x/fnU6TPxEyGEIdlIGfEdFv64yzxs7SnGFS9afIEwKW43tp9L/vzOp+q9at6Gp1YleRhkeZ184uarbRFw== 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=BWzDEOrvGsXkeLFuQUzh+kuuXlmC+n6xd6KphZsqvAiFNBtIN+V5pwP5Br5piWNUxstKkmzHsYaA9pLT8znhW/+XLnVC+X5h0a+Gj6t8PQWQxwbLORTomIaLwse8dWRfxY23YbuUb2hAlvTuJR6IlijgbZD9zMuPTV//T/EXD30= Received: from DU7PR01CA0018.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::12) by PA2P190MB2132.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:41d::15) 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:27 +0000 Received: from DB5PEPF00014B9E.eurprd02.prod.outlook.com (2603:10a6:10:50f:cafe::86) by DU7PR01CA0018.outlook.office365.com (2603:10a6:10:50f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Wed, 23 Oct 2024 17:01:27 +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:27 +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 50/73] net/ntnic: add Tx INS module Date: Wed, 23 Oct 2024 18:59:58 +0200 Message-ID: <20241023170032.314155-51-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_|PA2P190MB2132:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a52cab54-ff38-4d60-5daa-08dcf384557a 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-ascii?Q?BMHs4skGxGmxBp0+EY+Kk3NwAMXIsxgKIOs0g1AHJ3F1cnbstXTyImFQ2O6r?= =?us-ascii?Q?8+d9dnjt1XvzsZW7YkAkdtAE6pvx9KEhQok3AWyCC3miRXL1px7jspIbX5Ti?= =?us-ascii?Q?8kFV80qPgwWzHEErCLZMhL3qmfuDkFIJk0PD89VFFl5yZ04KFtr7M+HtQwY1?= =?us-ascii?Q?IRuLAZ8IwD1xtOAjv4eNvvrG4IVOHQnHQHt8pxE3iqssetTEZ0tDwLLCbknT?= =?us-ascii?Q?apRiejJxU2ZotlenyUVvjl06UkE6EmCZul4lKtdCVlWvJLed/SJomUksRIgc?= =?us-ascii?Q?W4p+sbmw0B2UDMpGswc2kduRoZoC8S0csS+rV+bqNZj+Emnd0hlNPBQRUjQ2?= =?us-ascii?Q?BRrcMcIvfwLEExzMNmRsu1KAOeKucyrH1IvxGZx3+OnIVhDpBrhh4vbyzfIw?= =?us-ascii?Q?hYeaIzSUCfXPe+DBeg0cB5ZURqhOFxpUHwVNbcuC0p02fzhmeMwxcAGCbYqP?= =?us-ascii?Q?heNiAfLCrW7G715Pm65d/N5vNA8WPWYraFSRkoJwZhGfaAzHp1sLRZOMWGLL?= =?us-ascii?Q?SmzA996tJKCisKRp/IOgP472tqd3qfu+NSQgGHCMubioIRT0euIklIrNTBUU?= =?us-ascii?Q?Ybu0UIg9bWL9dFrmbmxjqN5WuULpMD64kmeGSXNk1atPX8XbXwPklFeE7b9a?= =?us-ascii?Q?2yOX4zEZaiG3X+tCUzSlWRUrBaoqHmpXKKjFAheRk6YIpNv0wfyWqjVJiDPP?= =?us-ascii?Q?zJUhPr77W9ogE0AuIxObYjUbmYkAaqv1tQ5yBgC0R+7sNqOeu+U/OuZZeQr7?= =?us-ascii?Q?kd3ARC/zqbYrU4hRMQQaVf5JynO+Dviczyhk3o9VaXB7BRIBXYfZ8UuGx4OC?= =?us-ascii?Q?cqr0croUnZSV4UwlmFdeE0hUlc5I2zVPt0yNYA7PKyUeofyqDUA14grBmc0O?= =?us-ascii?Q?QvlwmB5xo3v6nqG/yKM/TRDDH6n7y/UHmm+PSPLMDmfmvPWnhnY0qs722Y7k?= =?us-ascii?Q?kK+xw11fGgZsIXbOs6yQz8XCgO2WM7Xxhz4Tw3VtobSrZWSJ0HhN7us97XYQ?= =?us-ascii?Q?HVM4gJvxNsktO8dE/JKsKkeR8Tr44ZiQwZUdLZt4KT48U4WUqGyzR5Dz/a7N?= =?us-ascii?Q?a9EwxkUzsJnrN/Nu5ciEwsC5Dsr7db01F5mvTK76Y29ahMMuohhmm6A6qJXq?= =?us-ascii?Q?No6WBZicWplTdDpvG8fEhzxybELj85iSPMjU/+vjdfiKNpWqgSqg1rWbMnkW?= =?us-ascii?Q?BwXZuH9Bkr+loK8m+SSNwWaNqYV2YfawKgAmXUzmE/0TvuqIN0IIOrj6l5s7?= =?us-ascii?Q?Sn9LWgwIbW9/iwt2FHFRuz6yvSl3P4UkfplvB7Z7jNmLA74D1uDBvjaDkeSb?= =?us-ascii?Q?9xunipfrsQ0smn9hhCeoHTPq1MKTQrTJ/JdaoQhCTfNUuBLv2WPS4r54PS+5?= =?us-ascii?Q?hp9Xm4RfnlJqVuc+JM/DXzP8Ru/sMJq5u1AiLB4evh16pLg0mw=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: kX7yLP+IGtkykf3jv7tIf49PYZ+AQBjWbVgOaOtTChzmtCxiN75UA68pVl9dN9MVWsWRFOuDCbJ117B6ru/w8xeUXYtM9rujdKzMIVESHlbzIbLkFg286OmuAbh9rwg1Kc8FPbcFYlCRbZUkBsn7KbdOVUsAymZ3EiOd1lhgsMltp98cwiLAgtybqgyaww48RpX/L8OToVaqDd2zpQGeOP95F+jPnCzk2NsyB0k2f+r/AIuwmYn83BVqc1Fz22Vg6cQzsoy4hrXiOJWYHkoc/9Gpyj4L5jRB3buS0IP0Bt4CH9admtOWxoSIGqg99QYcAkMtIW/MsyOV9Szaoeq9qZzDH5QBA2933mrbAxjaW6YPQ1SMR1l010L4hZSATVS8844LLQBYThys09lNfXBuvJU4vfDRjzuyLgAHAmG/Ld0GnIb44lWZ+5rqe/XKrQlpM7Mc9eciCOhFNejofkn7K9Cv9WNw8LUmmX5Oi7THlekbjmrHVDkvxPKb5Gi0EJj2n1ljZGtAqyiA2EufWyjSC/fk/0dqYqx/l7lUmn6WJXcwMN4xVSu/dPKi2UVtGa3tIIGM4ug7rvFzdLigqT8hzfnjIQsMjTAU8fpNUsZBrfeqcf32HnOPRrhJfrXfTpJgrwTTwgc4rLXAcYygzwrwOKu8d32yx3nPwj8wSg1+/3c= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 17:01:27.2270 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a52cab54-ff38-4d60-5daa-08dcf384557a 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: PA2P190MB2132 X-BESS-ID: 1729702889-305394-16205-13520-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.259925 [from cloudscan22-219.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