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 AF63545BC0; Tue, 29 Oct 2024 18:17:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A6C943267; Tue, 29 Oct 2024 18:16:55 +0100 (CET) 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 A888B42F87 for ; Tue, 29 Oct 2024 18:16:50 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2112.outbound.protection.outlook.com [104.47.18.112]) by mx-outbound17-86.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2024 17:16:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JEcb0xIbhd44ljx2wi5DnnEb2YKsiwfLxNffuijpp+nDipgWwFPwu2KtcCsRTuf4l+OKveWhWOXrfGHbo7tSL+PHaoKMmPv3SO1qRk2VGcdCNHKiq1bjG4SYsdqLBGkyaMx4qdVlBOMK9S9761/ukvJZYfZMUhct/aBwmejsvDo4++UoiVIsxyJlklTlGwo4grlbSme2lMilGY6QLvcXNHmBXwJ0Q0yDMkgWvAXnUGwLmA5aOxIK/Z7/18Pp3ztrqJr+xxf4V3miwicj4w/+ikDuu/G4/+c9du38Vk6VHuAueGgsP75chXcrVT1xXxv1GkWocaHIFtkIJtVKNgPdQg== 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=yT3Yvxsggo49zDuiUaGzBBuL1L7CEFxQGs7f2B5Em+Scx/PXMa9cLgcZb4QdLDKc4XF1LLSCKG5RvwAd8eX78zsFVavj4ZEhghfTPQWhtU/Y1recgPbMWZwVC7D0y9PekYaFtL7kyf47EtWidWlwHZiFeZ2r/u8klsddyUcpU1EpHJd2z8Pvz+h3te6mK7Gcx3eSUUeYhtY6qxtnMX9eAh8Z2GTYjyBkNWAdMQYyXOJ7jXW0XfNkU8QxBG6dppZB7FpN72Ziz7NICtzVtSgW60NR4AUOGrNzwacInLvV8mOpQF+BNN9yHenvgJdqJdKrAgYkgpwzlk9mD8Wj99Ayeg== 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=K7+WgG0DS4AWe3OZNcGMrgQh0ABLhfntknyOWFj46LD4h+RfZGtMOJDPuvzvyWGmMvcbD4mgtpWPHGiqMq7vtNoDcb/u3wvSlYhTqVJ/NyvuHiz2pM3SckmFXqJm4+kaL3mpP/U1c0YjtTHI92REnF9kxCVnSVs9/2yGvhiHA1Y= Received: from DUZPR01CA0198.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::29) by DU4P190MB2149.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:55d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Tue, 29 Oct 2024 16:43:39 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::d4) by DUZPR01CA0198.outlook.office365.com (2603:10a6:10:4b6::29) 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:39 +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:39 +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 48/86] net/ntnic: add SLC LR module registers Date: Tue, 29 Oct 2024 17:41:52 +0100 Message-ID: <20241029164243.1648775-49-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_|DU4P190MB2149:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4a52f91d-4f93-439b-06c9-08dcf838d76b 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?LgpwrGyGkzOjs4ejWxp3mfG7GkTctDSWEu8qXHe/5KxWdSef/W3m7Uws/M6X?= =?us-ascii?Q?fICRBF+VB46edKtfAiYBCEWwwKuhj4Z988i6+QwLqhTfZMtpXKIGHOqBaziE?= =?us-ascii?Q?z5XUhvcRNsur9Y5gPUQ3jmCxeeuXYIW65+6HiTQRcKbHQD/nhGvfQgaGiNIL?= =?us-ascii?Q?ohojfpITLvPWUAr4Y4cQlnDzOG+t1hspUv6jb5jw720sWee76on2MZ+JM/lS?= =?us-ascii?Q?IYz/vq6dWMx3Ek+xK3QYD0Hliv96MD883/j7xxQJB6tqrwrgfm7nmJ1btRKc?= =?us-ascii?Q?WCGhRTJc0UI7gl/wMgtEVxPCkdLPNRXc9kqdPiMcCbPnGTmA8J9ovWm58yDD?= =?us-ascii?Q?VujKFiDcexEHkHEhl87Yq+unpL8V7ln/p8OMeIirero0nsgp1y5Xmz82q0F6?= =?us-ascii?Q?SguBKkRoLNMXreledc1yQVy7LBFo/7bWnbU1RKu+mRNYBp06KXjsJQ2Qkfbp?= =?us-ascii?Q?/2EHj93Hj8IoDLgZrfb2cb6NX1IwJu3kVCvnA3KQZBvLI1WfL3o6WEYyjQ75?= =?us-ascii?Q?v7lInvKB9IwvnANHXiw7M9QIuPEPyzGNecW2B8J2sGZ3uRrTfewwO9/yTYbK?= =?us-ascii?Q?hDm75PYcCY+CoLj1iK9AXYpPEoZ8of+D4n6Kc4oPf9kqhcugbrlBKoYTaDH7?= =?us-ascii?Q?HsS0YsZeQMFS8AD/Dn9V+du3KvCe4PmbwMjob7Es5LF7L4J/PutU//mwRC1d?= =?us-ascii?Q?fTEcjZuaV4RgzUfg1iI9fQmHume1ZSUxYSg9A1E39rE4UD3X+20ugZTTGEQ9?= =?us-ascii?Q?S1wXKaR/JAOErnrFUyxu9H0dfn8UFYRcm8ZeHLY2cv8zN1XtUR4lqkhlGMm7?= =?us-ascii?Q?vSv0/99HoQnOEr6BBgRKA/l0KbwKF6Amqx5Tyv3bXnw7jAZjbdaMul4Ol4DN?= =?us-ascii?Q?n/C2yTruSmWh0NGhyYA6m2x1HXnZuKoohJLBfrzdmSCoKK8Qb2xbobHwNKUr?= =?us-ascii?Q?zckmOkYPojPSWiEZyT0IcmRb/4mRmrjGjOXjUZhUyy/Amp2thA2coDZbyjrp?= =?us-ascii?Q?w0BW4K30z3tZRpK5cvth/R8jMCaImnAneNW8Do4swK0VyyVjBEoY/fgVyHgV?= =?us-ascii?Q?k0y7ON6MaP66ec8evF/Omgiz7v2c8Ia1UAmEdjA8xDOifvM0FqiJEENgjd8V?= =?us-ascii?Q?qlrRH0Tq0JojDXLVbAwIHqioMcv88b0wfrSO1yjLhTQbr+f2mU2UQ+BN9eYn?= =?us-ascii?Q?dYxQMj92HqgOpwvBBVVQk1CILcq3pbcRe0OiZs/jJ1pm46525TBhi5HpWSsx?= =?us-ascii?Q?B9GIXoZXjsR0fadXU9u0JjNy8mu1NiGmlb9w5eIGqD+ZlZHEVRpoWxUqCQ47?= =?us-ascii?Q?feHEzNXX1BrJH4nosSW+4/whIS5KpE7PPoiNQYAUl8YZnJsixQNyJjtTvojf?= =?us-ascii?Q?3sK/tRJ5pCImnENSAnf/oQJF812WxY12yT26FXrmDT56epL7Ag=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: 2uZiOnBOoDpsk8EVP/zW5CgZL0WDqZdsAy2r5eZLQvh6Bxl+SMIaTWu6P3RW604wRxYZMhnlb1L+KLS0gsTRvEbDhK8lhY2iiOU7cxiLRpvgSHmupzZIlmRaY1bKT1BrJ8vRdAwIcFxQxBBn+VT/E7VcOUuLQPzd1oUPb8ZMJ/MJP3a1vwO0XwD3csTRsfAL/R4Ig5yuCvtq4bB/rkHA6P8aBnEqSFeWpZImejqXF1rGEAcE+tagz9BD1yEsyBeL71p0PL75LHc/+BoxsUUph3Za6xZC9t1RsnE7YsFn2/oeTC0MHNwtFU92umnqFnSxm2JOBkEoaY8JxMrCZBfHdK5yvK6DWkzeG9xwrTJT8V9bWEtjBTMsfRDNA1W2P9wHZk2Bl380NXsez3RgrQu+naKOwwHYyXasXcYq5578m9yaYXc2NOVvpFvmnykuhtIR+WmmTnnkAq5Df0DU4UR4i0CmSFCGkftutsqjBVtuo9xV9+WPXjJdeu5ww1tcO00tZjtgtX8VCvARaOIHJroMlmohcKlpB7v4LLyaigeoArd+JmtAfE9vPk9ee0zaKgGrT1EsYp7JVHqRYYwSZjEUiFPTi/KjWIjMZu+0/b3W5EZZJP/cpcMME2iYAopc9zvXDpQIwd3Ca0tDtRMjN6v6ywbbYaAjesCmmT78Gs9zoTk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:43:39.2771 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a52f91d-4f93-439b-06c9-08dcf838d76b 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: DU4P190MB2149 X-OriginatorOrg: napatech.com X-BESS-ID: 1730222207-304438-12707-32015-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.112 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.260064 [from cloudscan10-180.eu-central-1a.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