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 1FFAD45BB4; Wed, 23 Oct 2024 19:06:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A000432B4; Wed, 23 Oct 2024 19:02:10 +0200 (CEST) Received: from egress-ip42a.ess.de.barracuda.com (egress-ip42a.ess.de.barracuda.com [18.185.115.201]) by mails.dpdk.org (Postfix) with ESMTP id BB85142F7E for ; Wed, 23 Oct 2024 19:01:27 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2110.outbound.protection.outlook.com [104.47.18.110]) by mx-outbound15-83.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 Oct 2024 17:01:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=M8YoW7yBCLvm6Ki7ZkkbsEwG6gKKsaRHu3LvFa88DtQp3PwmNm6H6yTpn9sPL2GRpTgljBv+OZ2adGEHC0w4+1OPZ9rpHN2IWgv1wrI31TKndGI73vV0iQjhKfDy8E1Tph0rh4QUzxrgkqm+lEH3JFaPinvHxH5/vQBUGwUFnufeWgFuPrWzgT/NdN3f2Yglm49q+YILesjJZi4HsiNmLraZlKK2aCC0zhE9Qy98yEVdh9yineVtOymTZelHY9Bu6Csvy5y1W1wQityE1CULKUzOTaQjnC2z5yjTIz1wezQhqGNL1ADw0w7/e3iiQJbTuOcmQ0synxgefGAWVlHODw== 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=S2aUFYECgrR9mBgAUQ7UCiMBAhC86uCpurRzjwbR3HOeIlh98QY2zDn+5R/p9kItEtvYIRTF2JZio3oY2dw4i67/x0kTA+jy/zCCO77gHlGzHRXJN+4acIFlNhejRcbQNOSe2AZ24kSl0QCY8dbhVLi6dni4jqrpoEW5Vyzdo9dlPnneyhVYQ6cw7Cp/4/AyE8tK5XWGBQYor/id9poon/hZr93QuIyEbJicvQPXjEqcmpAi7Awv5E1ELeVo25+n0s2XMbVyQjsv5Fm0KuLExB2bmjWbT5u3mitcDXIao58taKOwZIM91NaJrNox+nXpcwci3Oiu9vcNiXAJ8tPhSg== 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=NrU9Lt8T3Er+5XI6Yr0XnF2Ov5VI4eSk32tWmo+uvYh1LhXrheWtRd1TYbDDBrqVY7PM3faEIui7ceFsQXv55PWxNio6E6RiEESfRz+6d+kFVvlL5nCaGEO4NpU4hL7VGE6+Jan91L1aVgl0t+X0W2IX+Zs0L3Js3FFTeRuFzwk= Received: from DU7PR01CA0004.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::18) by AS8P190MB1349.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:2ee::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Wed, 23 Oct 2024 17:01:26 +0000 Received: from DB5PEPF00014B9E.eurprd02.prod.outlook.com (2603:10a6:10:50f:cafe::1a) by DU7PR01CA0004.outlook.office365.com (2603:10a6:10:50f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.17 via Frontend Transport; Wed, 23 Oct 2024 17:01:25 +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:25 +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 48/73] net/ntnic: add MOD SLC LR Date: Wed, 23 Oct 2024 18:59:56 +0200 Message-ID: <20241023170032.314155-49-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_|AS8P190MB1349:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 38bdec5f-5316-4e83-f207-08dcf384548b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?BHxq34Hzst6h88BEiYJES09OfDc04+dA5lMhT/3jEMISlMiS/ve8Dx/jGDJC?= =?us-ascii?Q?fUhQv57PowWheJ63EH/pSOOC/8gK/v/HNWk0SCZZvM+F4PTaxNsvYw6Vg2X/?= =?us-ascii?Q?SvtOieUW61Fi9lotgfm0lx631ZoSL3wJ3nv+HbQX1RSxS7wC6WToYk/7ZftW?= =?us-ascii?Q?3OJhCcZ56VervDFxbq6pKcEDaijDkJ048VvpbsiODgRZgN/+4iIpmUB5k5eb?= =?us-ascii?Q?TdnmVZJqhCGgkF81py6/Au1Si2tQz1823jol+eKrp0ceirAO9U5/BnLAIpCk?= =?us-ascii?Q?6CyKoTQX8xWpL45DA84uoyoKcO2+EeHiisruSf+iwRhcmUhh81BMpkvRw9FI?= =?us-ascii?Q?xcGlg6+PQBNcubB5MAk1L84N0mHUMOtJuKRKU7rd8lSu1QBMitxm9lF/mkHs?= =?us-ascii?Q?clDdeX0BmGXmUcpU7leGNayUZ7btLRbaeCwHlztzR+DrvKpeboTmB6Pg0Jer?= =?us-ascii?Q?HBNBCMO1NJIgpn22JwpgOJpXRsSrPk5l9VHN3rAWX7hy3EVuYRN4XyIqonEB?= =?us-ascii?Q?xvZM/WnjbahGuoE/Q5AI8GZQs4AbPWbifYXMljeiEEpBNjXyy8OCpK8a8Pch?= =?us-ascii?Q?KqNReQOIkRIX0wIu76HAgrddZ6srwoGwQy7LBGbbIphwkzfb/nDep1k6BPjb?= =?us-ascii?Q?gYf+w/LrquC0pkuXIizasO9DV67wYAGPLAYwJ/fcRX4tW+u/V6Ff9ojjvQtK?= =?us-ascii?Q?Ikt/n2Vj1Ft5yV2cQuuv+PRSg8K1V8WIh6j1Iy1B/fDWn6ZLDS7seigzkqT3?= =?us-ascii?Q?ZbGU2G4lRF0CmN4ASfy0o8yXLVpyyWZdBDwztsfspIJckMcuZWmxBeF9Xksm?= =?us-ascii?Q?t+KjHp33ynwTXKOe+fwsxNSaORMTuS8AiQD561thsAcFytg5Uba40lNOBe/y?= =?us-ascii?Q?yL91mW+gvTbcQrnsN6tCHnW3WuzXDCw2te483gYkMcUYOunyo2GHkdFO1wc7?= =?us-ascii?Q?mh8ttm0W62PMDm9OFmlUc/u926VsawG3d8Nd4uHV1MLfq8cuwPPGwq/ejRIj?= =?us-ascii?Q?4ikcr6Gh4mS/kxLJmzd19E4SJ0h3Ejhj3/McKobgF8qTNS7KFni4yT1NIhOk?= =?us-ascii?Q?pZnDdVJNnqXaOst2w1UIV1WrWp2KYPYwuLf4jwAfX/I0BFqvIOPN5/UhRy/X?= =?us-ascii?Q?a6c6lM2R7Z+KEyg1oIF26ZUetjvNcG8MeYneotcIUQn4OPkaUIByQv/AnXMB?= =?us-ascii?Q?CeUonLElhGBzWZ9DVwXc3HQ3UMxQ+3CTcDZmPae5ilstZaJ9Vy5kcUV3ooWr?= =?us-ascii?Q?gBOOa74NGNaCdJVo12hOa5gJkCBwv9pbBCbGrOeAJXRT3psM33NwJb8R3SKH?= =?us-ascii?Q?Jg2a9ZQqb7NbwuwFKU/t3c0eg0YQ7mG1eKxMa6SvJSlcaFuLdFs1vdj7G+V6?= =?us-ascii?Q?nNkbPsTsNw/Ztza06bcqdiVIxUCYgwo2kLFKvjc8tOLSmTqhPQ=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)(1800799024)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: BumO4MDC1E+CjLYfBikNehxEs9+l8qGOnxlcSvxdVySS5zTLTTUmO8KcsDlrRmBzUUTWQwX/PB1eu+4T2nJ8rUjAZIiiVYQzvA5JizIs+Lay2Q4YpLiW13xiJUHu12LJPcXG308eYgkeetH8RiGluHGi8qsC8uwjv4bbE8+yFM3cDPOUDCJNXfS4/UkzNxuwMkDZ3KMzJXQ6/KKU0+oVVZNZJaAOjB67xlkc3/ZVCPWcNZ2I4bJYv+X88CCmZ93AO9DLcMYi/hAddit5Vs7X4GCZC+NCvSAAqSt+JCXZl3sBKxhFg9LcVobWcCBjCtLMdKdDWsqIyEPFjKFBUac0yHhlwrR8PprIK24UP3K5uEab4upzGL+1+txOpWtS+/lI+ETHFApbl37B2S4THznJLYZqvtm5d3nsWUpbJ3Xlb1mthmTdgCzV1rm26jV0lFLdBIjm03alg1UI8HagAzLPWuvVCJfR2Ws8/xvQVGc30+AVPYlnJGAoXbR7nXJtYh1TZc3vcx3cJ/Ng2vyYL7ZkoL/T2jbQx2LtcBcUMZVEykPWOaSWHhT6dOpS9CcCK6vDQrl5/YP+lYNmqQWJiRo5/4wixsLP6Cr9Asi3EDHNaU3140u8TAA7RJ1kBO+jdTIpcXGcgD/3pUxuyV7ixmj0c0NXUU+F1gDeMGOOhxIUuFQ= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 17:01:25.6645 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38bdec5f-5316-4e83-f207-08dcf384548b 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: AS8P190MB1349 X-BESS-ID: 1729702886-303923-12640-44227-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.110 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.259925 [from cloudscan22-191.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