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 9123245A68; Tue, 22 Oct 2024 20:29:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FB8640614; Tue, 22 Oct 2024 20:29:01 +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 39AD040614 for ; Tue, 22 Oct 2024 20:28:59 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2173.outbound.protection.outlook.com [104.47.17.173]) 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 18:28:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YTwoz/X/Y1n6nA2fOnDDLX20ncGqtiqo2lx4ClPpWFKS6SbBUDGJmsK3D92k0GWXYqVblV1SL2RP7qtZoj6mwFb1oqJDDdK/nGpF54JPw5tSADi+3DP2F80JfsVHz0OAmBoT5sErfLuLJUJS3gBwbi01VZVt5ZBcwnyC13cr4EZhO9TU43BUL9FEfgoeuXV5oDa/zXwq4W1VABxQszblbF8DmrR9uWdPzgRhJ4OpBOsFQYoW7qIU6P3G6LuhX3ghM0NWtYg7vI1tpXuc3SFp6ZRbdii0ym5bWHTA+H7pLFKYHXrghqg4fdFOJLSuaYW1NXAjYpHecs1eNfRrF8YhsA== 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=VvP7JHyfLJeHSAOXMBe00bda52qDEJrNknSYNrZaVB4=; b=LCuAL+yAA+oS80iNBegZG0k4l/XcfjzgwHrE/ML+2Oiebs2a0EUWMtS6sDpnP0z2gsmFMCL8q7+GIMvEQT6AuJkoWwamK5QLYRhLmKORwRaw3qPNDvmvWlltxEfmYEFaJzdnGLyPHCRKs+tJfUaFVma8x4vYydv9ISlUKSNxHq8iqDoYd84qjvtGcS00YH1N+6rf3SRpyodkfzRMCOyERP+3gGooNIQojOXowtwlXUuBGV7nPdrKD/2q77q77F36r3LAuR+iOVyx6ZFmiZzeaf0aUpqfOePmD1rTrZZkCHX+Hi4U+bRKENW2KxSxljy79s94OlweGRwAqrKj1ogzFQ== 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=VvP7JHyfLJeHSAOXMBe00bda52qDEJrNknSYNrZaVB4=; b=K8bDGIQZLXikGnTl8YvOapkN+2fwNsP8/y7qG8ZLmAih5jYoqaoIjun8DXRpCAKy16hJFDYDqAswILVoFcqVRENZBWNxZV9CucFIonRcCZjuEIbtfp58p1+HiYxLyXoNC+m2a4TCsuZSpYvFodHK6CJcXq2ZSaO+6d2VeVFzhFA= Received: from DB9PR06CA0005.eurprd06.prod.outlook.com (2603:10a6:10:1db::10) by DB9P190MB1723.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:327::19) 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:50 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:1db:cafe::a3) by DB9PR06CA0005.outlook.office365.com (2603:10a6:10:1db::10) 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:50 +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:50 +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 48/73] net/ntnic: add MOD SLC LR Date: Tue, 22 Oct 2024 18:55:05 +0200 Message-ID: <20241022165541.3186140-49-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_|DB9P190MB1723:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2099f69d-ae37-4b1e-65ec-08dcf2ba85e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400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IrshKOv?= =?us-ascii?Q?BDNjvHKwC+hMJxBsqla/wOBQayQq11z0DHSA3WDcyAi5mO6I/VWFguiVRcNh?= =?us-ascii?Q?NU2T2EZb3CyD2kWaAmA/yLuQ3CBHh17ePfPuzJj3iQuMD4GIZCneW93FQV6M?= =?us-ascii?Q?t24kERcU+oPYvwtD327fXRRCr9p09MZnDiAU0EBxOP7ss/Mmo3dsU5mqcd+J?= =?us-ascii?Q?9k2/N+RDFAh5yRjwlfOEe4ec+XV090hr1XHwIvMoYUqpaW7F57A72LI/5Qy2?= =?us-ascii?Q?euHorb1j4uT+afe27+cFtiScg4Lt0Wz2R96ag+WcvugbvrQfhpaOgQMide6M?= =?us-ascii?Q?CvQgdA+e/sIQ1FjyN1bhSgu0LG96WLbqlCVMc630fJ7lyYVWHL+fIs/3A01R?= =?us-ascii?Q?3+gLtqUTXLFsVzGTd+QMMh5zi6hvK18PEZEgBm6LhiIXSCemy3oI6dg/92V2?= =?us-ascii?Q?HaBhzl266/ZV6ai12wgilzwOeY3MvUxJQRDSJ8trKec7mtvCIKA1gZZthlDb?= =?us-ascii?Q?dvxwV/APpti2lqDmpd/RFryM9PEXsrwCjU/BRKMksvTO8c3eqrFdgPx9CIo3?= =?us-ascii?Q?f9yUusWEEv5P6dg4P3KFvLIsOUKx3ntPXSQFn99TW0fueQIxUA=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)(1800799024)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 0SIGgKh2/9umyvnZPwjdRGgym3lK/TCFsbLPPuzO9oIWk+ErCvLJhnaEy/vNBvodTATlOSgY0nVoraM9IzCitZvcXpfLbCnSgVFEjfntHLwtT7XS3UcX99wB3XvbGaWqlb6DCTnMIk2bO+NcCcO4YYqw4z8IGfvLB+TjGnRiRmWQd3ciANnwwmBwXycS7w8VD1Wcd/0F7i8rbhazoIDTsEARo9uxGwOxjQMugS3mH063lWdWftiRCLhM1MQFlHeZEbQ3FdmEWEowmz4VQu6RZ9nScXV5nPfm8KTv3sAbfZZS4+54R4lPAkU5yQrCo65b77E8p3csvH0JFxQNZNmE9p3LAGcVnCRjdwHDPjkX7nO9/aClCOIULfGxP6x/zLJq056MttFJs92xQiMoXRWnjhi5wowquFfXC6opKwDrLdQhAfqzYmJWYTPu06LwHg/ggtAAkVClc/SeI+nQX/rDTd5ZINIB8TCkXYxKcr1kNpqhiWsvCJIIui9sw8l1ETudNEtaJ54IdGXNITy2meUBdxHQrl8OjvZjwne7eIhT2/9toDXAanMt13ZUhADAen/0I6V78uBsD9nBibxSuEC/BZSt3HK5AgPPfty8n0WTAcsxMZI94//vZETXi85rMBcr2EZJGWV/lCG8+O+cD7G8MrzIgJxbV/NwVG2TNyMzB5g= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 16:56:50.0754 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2099f69d-ae37-4b1e-65ec-08dcf2ba85e3 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: DB9P190MB1723 X-OriginatorOrg: napatech.com X-BESS-ID: 1729621738-310266-12658-16841-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.173 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVsYmxkZAVgZQ0DLVwizJItEoKS nZxDLZwtzMwtTc3Ng8Jc3M1NDcxMRIqTYWACWhPF5BAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259903 [from cloudscan18-120.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 Slicer for Local Retransmit module can cut of the head a packet before the packet leaves the FPGA RX pipeline. This is used when the TX pipeline is configured to add a new head in the packet Signed-off-by: Oleksandr Kolomeiets --- .../supported/nthw_fpga_9563_055_049_0000.c | 20 ++++++++++++++++++- .../ntnic/nthw/supported/nthw_fpga_mod_defs.h | 3 ++- 2 files changed, 21 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 33437da204..0f69f89527 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 @@ -2214,6 +2214,23 @@ static nthw_fpga_register_init_s rst9563_registers[] = { { RST9563_STICKY, 3, 6, NTHW_FPGA_REG_TYPE_RC1, 0, 6, rst9563_sticky_fields }, }; +static nthw_fpga_field_init_s slc_rcp_ctrl_fields[] = { + { SLC_RCP_CTRL_ADR, 6, 0, 0x0000 }, + { SLC_RCP_CTRL_CNT, 16, 16, 0x0000 }, +}; + +static nthw_fpga_field_init_s slc_rcp_data_fields[] = { + { SLC_RCP_DATA_HEAD_DYN, 5, 1, 0x0000 }, { SLC_RCP_DATA_HEAD_OFS, 8, 6, 0x0000 }, + { SLC_RCP_DATA_HEAD_SLC_EN, 1, 0, 0x0000 }, { SLC_RCP_DATA_PCAP, 1, 35, 0x0000 }, + { SLC_RCP_DATA_TAIL_DYN, 5, 15, 0x0000 }, { SLC_RCP_DATA_TAIL_OFS, 15, 20, 0x0000 }, + { SLC_RCP_DATA_TAIL_SLC_EN, 1, 14, 0x0000 }, +}; + +static nthw_fpga_register_init_s slc_registers[] = { + { SLC_RCP_CTRL, 0, 32, NTHW_FPGA_REG_TYPE_WO, 0, 2, slc_rcp_ctrl_fields }, + { SLC_RCP_DATA, 1, 36, NTHW_FPGA_REG_TYPE_WO, 0, 7, slc_rcp_data_fields }, +}; + 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 }, @@ -2261,6 +2278,7 @@ static nthw_fpga_module_init_s fpga_modules[] = { { MOD_RMC, 0, MOD_RMC, 1, 3, NTHW_FPGA_BUS_TYPE_RAB0, 12288, 4, rmc_registers }, { MOD_RPP_LR, 0, MOD_RPP_LR, 0, 2, NTHW_FPGA_BUS_TYPE_RAB1, 2304, 4, rpp_lr_registers }, { 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 }, }; static nthw_fpga_prod_param_s product_parameters[] = { @@ -2419,5 +2437,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, 31, fpga_modules, + 200, 9563, 55, 49, 0, 0, 1726740521, 152, product_parameters, 32, 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 f4a913f3d2..865dd6a084 100644 --- a/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h +++ b/drivers/net/ntnic/nthw/supported/nthw_fpga_mod_defs.h @@ -41,11 +41,12 @@ #define MOD_RPP_LR (0xba7f945cUL) #define MOD_RST9563 (0x385d6d1dUL) #define MOD_SDC (0xd2369530UL) +#define MOD_SLC (0x1aef1f38UL) #define MOD_SLC_LR (0x969fc50bUL) #define MOD_TX_CPY (0x60acf217UL) #define MOD_TX_INS (0x59afa100UL) #define MOD_TX_RPL (0x1095dfbbUL) -#define MOD_IDX_COUNT (32) +#define MOD_IDX_COUNT (33) /* aliases - only aliases go below this point */ #endif /* _NTHW_FPGA_MOD_DEFS_H_ */ -- 2.45.0