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 0DAB445A68; Tue, 22 Oct 2024 20:28:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB8444029B; Tue, 22 Oct 2024 20:28:12 +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 457F340272 for ; Tue, 22 Oct 2024 20:28:10 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2109.outbound.protection.outlook.com [104.47.18.109]) by mx-outbound15-54.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Oct 2024 18:28:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ewyn245dm96NiHTanRz1INMI99bmks97X4Zvrhmy5o1lMdiVLNN7LwArAYo23ilroJs3lrFroW4ng9gJrXIFvGKN1elIzBu6unHkDhi7UPtLH8/jN7mZUQ/FXT4bb7d1lo7HLO+rVARdpFmyBiDger6mLM7PHdKtx2ppgKccR27U7nszr3T0irXjPxpr1PCz4HV9R38Cw8PLXgsDeONaZLrCSJCu0jrDQxOAkJZa9valsNxa6LG4D0DoXwZ5bUnqVCsf/s6mhN0F2mA7lfoc7pBtz4H82zap4H3OyMnFub0ztMY11nK7SotRSrkpp3jH40NFcK4ABYRSVvB9lcTe+A== 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=qx9gjHiZDQpxc70gAJHYbpTf09cl1OFr/P9ysKFVvc1Pqf79PUI6l/As8NlFWYJKRwbUSHqU0bqPoKtae4zQtiOB5Xw/JWV8G46CI1mAWS8q6aigM8zMLP7FDRe4JJptwqevd4XeJK6MN7zrsKtdr+SKlVJvX735MdD6PWx8XBDgda0pYbSFXL5++QO8HOkfEVbDsJLBZKxY7X01X/OqEJTZkeSXCGPuEHSu3jQCLbCXmnfoBIfniCPgyyeRCNt44Pd5MNzyl8KdIEQ42Nh3ASl8ZNybj4jpKe2kdDrBUOpPILdlA+rT8lORX0tAI3IPVhaHUVxSNU3PHxxvYr5zCg== 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=YIhCJkA01LnrXY4nvrMG2wPKspxhkB/n/hePTvcoAreBb3hC4ckKVBRPKQyKqaBSYfGP82oaSwo0X6mOJjUw2yBtZ4x51C4q6d+uqxvePrMkr+cdmj2lo2uQWbnet73zm4sZhf/trCwSXq+0UTrq3vkpKcoVANUfrASkgnhkEEY= Received: from DB9PR06CA0029.eurprd06.prod.outlook.com (2603:10a6:10:1db::34) by AM9P190MB1266.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:269::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29; Tue, 22 Oct 2024 16:56:52 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:1db:cafe::ab) by DB9PR06CA0029.outlook.office365.com (2603:10a6:10:1db::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Tue, 22 Oct 2024 16:56:52 +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:51 +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 50/73] net/ntnic: add Tx INS module Date: Tue, 22 Oct 2024 18:55:07 +0200 Message-ID: <20241022165541.3186140-51-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_|AM9P190MB1266:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d9222308-6faa-4f08-5b40-08dcf2ba86db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?mphO9LWHvFOr9/J0oEXwe6AodjZr6PWEPsosewFCwqjqwznp08bjhYtYB0Tx?= =?us-ascii?Q?OPnHy/VKTHAE/yb65KWIGv4Bw9NHWtYRzauQg2cR2CcjACT/BolOEhKJlFht?= =?us-ascii?Q?gPFTMeH9R3IgrbDSGSLv2gEAkg0xayO/7HYZBBFgyblj1ZM37870VDZ2l/Y4?= =?us-ascii?Q?qy73sxPiD0+UedPmRMNBqGbLotDzf0kg/rWdAu9F/yy3rpd5o/FOrSc387Yc?= =?us-ascii?Q?3BZro44f3lyx5JWbDTJdsMmQWS1F7wOFR0FBDASHZWtR4bZEmGegyQnhng2X?= =?us-ascii?Q?pUwz+Cfdo/D7Nku8k1pn8oiwqicjsDoxAxCpsxqwn/dgV7ZHSERiXTz1CPO9?= =?us-ascii?Q?/9MPvNljDlTL1/P5zQplpIgdgAQNm2TJUJ2Hm/3rPkXKkbnafxG9kKcOUe5D?= =?us-ascii?Q?tdrmVmRwd2+mpIHHuOjBCJmBzCfifl+RYcF7azVzkv05ufo3x24r9dyHILPt?= =?us-ascii?Q?dts1kpYOH1NWwzmygGcRSUGaDR/jh7sVVnhF6bZGw3wDBkTbqihmMLpLj0jA?= =?us-ascii?Q?OGcb9YP03/4UTBaRMl4J5czmDua0RJyBVYzmyaCmd26fZ0hHYH5trSRehJ/z?= =?us-ascii?Q?oJSTp+W37IzcpFqwBHue497K+lOTNk6r6DsgjZE4347umkh4j5gRP13lrDio?= =?us-ascii?Q?D4QoOeW1wQ5DhE7WAfuSOpdIaHCw3MwSGs5gsB9TtPj2RnSYdD9066i4Iyio?= =?us-ascii?Q?QUzcjsAY9IsmELgnzVdHsyEOwhx46aufVqAEQSEBLZtWn0e7ZUFUgdYDtzQM?= =?us-ascii?Q?Do3DiPKLJS4YBcmcL3oP9qafXoqLOhnQvhmjt/5oco2M+fH4B7UEEauch1Cp?= =?us-ascii?Q?2m2Wa6PXRk9sHGTm6exYk/fdcEF437gVcqDZwNS9TaZcLuxWJF6MpELzg1gZ?= =?us-ascii?Q?smEISMgHKjNi40V7Yryw0nPTy8gU261EcbLNtdWt1fd3QWbippq1c/DXH3WB?= =?us-ascii?Q?bbdiLBy6x1Y/IUVMiUZoBe+KpX5J3LOCF8MGWDDYJt6dIamWBwQjP791mbin?= =?us-ascii?Q?OVkW6obzMFRaTw7+lnSEJZwc+3rjF9l0vgtZZNcmfjgrVi6l6utuL+eHgN/P?= =?us-ascii?Q?AwFoxXDdnyu/WfAiCeF3kPIV4obBRLIvorL51wA1Ab/FFjnnGM2ggJ33/wb2?= =?us-ascii?Q?TeZIdU9Y3qFBhMdEYO4dJLXN6AB13EUwzOjvIQ/yXdHJpStjKzbIks8d61jS?= =?us-ascii?Q?nloPPz3mdECxy+4rkSUCX+g8ytJxJOTtGNS0NqizrB0WlYRGoxDejmzi+q4w?= =?us-ascii?Q?Oiy1qFOUTd5TkpxiQeaJL4qvyjnrUjVcX5RZm2CNSmQIeIRuHM5q8reumOW/?= =?us-ascii?Q?D+1GxvFX4/C1SG5qdC6dKYrEUog4gEONSFkxZoiM5aAC2w4VXi5mOKWc6JHu?= =?us-ascii?Q?kTL32EaWMTIuzBqkOXoijuftSc3mn7Q5swqVXe/YyvNqFU8+3g=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)(376014)(82310400026)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: isrVFPaPQ2mKyuZP1YpkXSR6IoIzMtpUhOyu5gNJJejVUM3VuGhwvxLCa7vLURHlicLL+Y77ny917w/LAsox/bwGHqVhkvcBebs8+q0laGnAGzuq1TuCYaFhs+9eBvFfXhgIFnyde+f/F0dnoh6S/Rv4SqJcdPjR0Yagb5IpVGXMgm2xnAmhhH+3LPUu+cmbLo4B05POGNVpR75lavBE7CJOq9NsMdKTKxOz2dHfZVbMEomtGumG/IGGarxpDcWHyXUsOCr3n/yJM3o4MN6NJ5szb1v4T47MCbl+zTy+u8DlFgwvGBfOlb4uQxU7f2vZvlgHT0fFK1TZhrh7A2motv3zeZqmMf2L5KBj0ZFA2OrCvfEmwj43medqmebkeFNqbL1ew7tPWzPpr6u+ru528/88pXlJoWPpR1Os843ZFzjGOrjXUR3ETkljujQsbOXGVDaRFZ7rHExHeLcUjml9tWavAYJCBKRFCU/bWr6sXCw2wfU93Qx/lWVCfpOl6Ua9WeXa2TMT/2+OJrOL1CJKHEvAD0Y00pdAghP4htmlggM39sBXAz8T+UpJc61f+lK7hZKYsRP6e63mLr0Gb/yZ95IlBhbCGs+OUmld9KE1Q8+Y7djQSmClnMnwYLvZo1yRk2Mf4erDja+9N7bqkWj2ev8j3nkXkKHMd142luJXY18= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 16:56:51.7160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9222308-6faa-4f08-5b40-08dcf2ba86db 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: AM9P190MB1266 X-OriginatorOrg: napatech.com X-BESS-ID: 1729621689-303894-12659-17444-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.109 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.259903 [from cloudscan21-45.eu-central-1b.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