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 0D7FE45B96; Mon, 21 Oct 2024 23:10:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFED342795; Mon, 21 Oct 2024 23:06:45 +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 DF8D440E20 for ; Mon, 21 Oct 2024 23:06:08 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2106.outbound.protection.outlook.com [104.47.17.106]) by mx-outbound8-87.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Oct 2024 21:06:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XiIix2foo9IkGytUtfZ3Ya0JpDd6QYJo8y/KN/rJ5L17kJcpwR0y0OlJYBWW9XBtzGV8agDTq+hyEAN4xBctoNCFBPTNdi8uqJ6cJOaMAIheje76vbhOoJMMzOhvB2yBZ3Ik8tVDlyMZhoSOQK8wHx5red3t/ZJSPyAgbKcvRaKSqIXPKY6BKIqA/WJcQQKmJq0UwdKjxPetsNuMabWRLW434RfYW0RQEHrDWdLxoE10GHKbItQgo+EoAA564FFm5hdAzd8H8zkysr+zM32sGWXcth70OLqlwSrONotLlYfEg5imbGFOd/6kNJ6lN7gRW/fiWMwaM+86JbYqPJjZvA== 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=maNzTdNKjiq56I69A319xp9nrWP2lHwjBszapKOCu573wFC5osEuPZ9R145N25gsPp8eKtGbbz+t8GJoAqn9U/Yd7Mp6VZAtVgFAcL27COxajFuKUzy69ywPebWeeM6qIyhFpTkl+751ICocO2X3IefxPpMPrP01QEnAJ6yMozG6QV2v6xBKKB43oh3V3T8XvVmgyBnynJ+EebAzqYrQOhAGBQDPa0KEE7WxLSasRYLvJQpeYDKKFkiVb+SQbMM4hJpAFv10v6pvLBO7to7eTEb4cSOPIF2S2nITD2YOWdwOs7FwWxyPYDH/FEAnO+tFraW7Xc6sbJGOGonnATnD/w== 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=awNk/0NfgVP7kkO6ne3CaY7pLxQDBha8BREZjaw0qfhvc/Gdo5GbZ6aFSszQt4dGP1jJo+pQ46i8Cpv74FBqR9qHXGcekXibnHbmfwItZwnm55u6kqZcdMd23/8zrplfV7igIuBXFdf7gIosbo3TpysfPVGNjPyitl/Kxik91RI= Received: from AS9PR04CA0144.eurprd04.prod.outlook.com (2603:10a6:20b:48a::25) by PA4P190MB1327.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:10d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 21:06:06 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::ef) by AS9PR04CA0144.outlook.office365.com (2603:10a6:20b:48a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 21:06:06 +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 AMS0EPF000001A8.mail.protection.outlook.com (10.167.16.148) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Mon, 21 Oct 2024 21:06:06 +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 v1 48/73] net/ntnic: add MOD SLC LR Date: Mon, 21 Oct 2024 23:04:50 +0200 Message-ID: <20241021210527.2075431-49-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241021210527.2075431-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A8:EE_|PA4P190MB1327:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 310cd144-b743-426c-9366-08dcf2142dee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?7ltCSWpJrZ+sGyxwfEEBddFwyu1ULtd3pmrYqO6tGPmXore769ExZ6XV/U7T?= =?us-ascii?Q?uSl6hM/CcnIh8ZKsPDwoE6S+ke/RT4wSovQKNRLCTVbbb3hV70/ZEJugZ0RB?= =?us-ascii?Q?m7Ka8MG/lughUuZK8pQIgNl5uISGOqsAnUUwc5IQF9LfrAUAYg5PeKFUH1Uk?= =?us-ascii?Q?iRmm/nL8FKR1It56+4JCyI0vj86aVnPsQW5IVg53791HfCnZNYK+GaWobkYA?= =?us-ascii?Q?PMtZcA6t6PK05fOEreprgv58eShGWIRVsJn885241BhXZlIEe4I5hKZVVIke?= =?us-ascii?Q?4nbZNvwkEyRip9fNBXteIK12aGC5p0MExj0eSsbDDcej8foAZzsD3ujVBRL6?= =?us-ascii?Q?JHq+zviBcJAn/BQfe/lR6gDdelOSIElzBxhI8NK0gAK4thyoIDgHer5u4Ij6?= =?us-ascii?Q?HZggg0zsA35T4yB6tLwrDXpPmclt0luRSFe5DT6waZcqU0tQWp9B4IqapNHs?= =?us-ascii?Q?uapJ7Fh90mBpvPaR4prhev6Uqm0eYtgip9IhjOgkzeuUHRo8hTmSX8rqW11k?= =?us-ascii?Q?QKtL55srzCzBYR0c5MDIO6QfreOeIy6QNYKx83pQ4lE5YplkGlOJZMfAlw+e?= =?us-ascii?Q?pl1lUchWFn6OYNGGJbBbyqojrR48BTjVKJIJ8Ppdc3EFO00e4DjYiWI35XdH?= =?us-ascii?Q?rqukOLyTeQLcf3lqGykj+5oc7OLMRatE7BgyXlphBsbcncqZozvHuUaxx83R?= =?us-ascii?Q?+8trOYQDooUiNSBHQfbipJ7zSJ9iEFZ2f3jA6dTfv+/OKQEVOCdndvCEULTl?= =?us-ascii?Q?KH5fWCg//cAkjz5EwvrmDV9y29FTy3FoBJ4yrhVqBfEF3w8lxw/j27bkYX6f?= =?us-ascii?Q?ssIc1/bO/NY627DgpwmpkW9uEQXOPJ8v8dutbqWnb39Qn2c0VkvQP3tG4PYS?= =?us-ascii?Q?a/GgS8nFxz6Zs/aRBz/gGZ9A6wfCfn4JJj6mrTDcdMielyWLKAsHycrsNmP6?= =?us-ascii?Q?ijOrmpNy/XMsCzOYPq/L5Z/cz9wAb3E/Ud2Te7yBaXvZjC4GugzBnWknAV4O?= =?us-ascii?Q?Gqwm34yxsRIb74BaJk/9ow9Yvh90iObau0Lrt/wxfGqNMMslVVuT7rNTqzR7?= =?us-ascii?Q?cPWnFlk/jj0MsMvmgpZ/zthoPiuSUt+hlZmZhbkr/a3e+iMTbpSZabcWM8MB?= =?us-ascii?Q?GRp6xcmBBJwgQGtSjj+Nx4QUKsCIYfd1oksSauBKASwQa0SDlBd/tx9gmgNz?= =?us-ascii?Q?e4VrZQCMOizm60DdC/45Cy9vgam7I+sQZ/4Ge7ogCOmDVrNroJYOL2C2UsBA?= =?us-ascii?Q?toafE1KEW7Th6W9/u+rWp/BlBmsL8PamcNUVMlf/G3lv48BE1gjxgD/Yrn4x?= =?us-ascii?Q?k71I/fIc5AxmtrrXL1UztMYAkOfnWeV9RVwp/kaVQEfNotpVzsV2f63Ihj+2?= =?us-ascii?Q?H8TGBidsroFbneXGIUWpnXMFQz63DtcC5icOBPLVRfzaeDqdhQ=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)(1800799024)(36860700013)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: cxWnGcv4yU1zbv8Z+BRm90oEbdjV3FcO3sSwbVBtzKDmy6xgJUHJUZtHBzpdCjgiYtelruXr6ZIw5tZJGY7K8D/e0lNyT2kdxAWemEhwQLGNyTn0mkkhVYKWE5IMK1hytGl1urdKe+NJPNVD3OJxoHQSvX7lIB07/Bkg99Gv4QMAlZ/UfiI0M5wn36n/jQjpmP9Q8Z9P2PBjUM5kDF2Fx1ZNxVJbXz2VfQUKyFsU0VHBgSQjVYXsmorLGT7m1jf3ixy1pf5wQFFGCyEM1JBbg8XDW6D3mfS+qIeCTfkq6PdVomBmfUnFcmBv83PqKBfxcrB36mjbyIDYCUbj9r/6/IO9p/fQ9VyDros3k76649nxSxzifsb4hUCyX1YKx4IJ/quDra2G7b4UA5YQQcuRUgXbSFdUebNkljdecqxFF1IaKItcaEF8MrShznAXM3ahYU++KGOV5SIV7NtQEhOjwgvjnk0tBtfMqenTK2AYigtfsH0n0Vu0rS5k4J0gac1vsyaSbQKoFoDj9mvQVS7zMEggi0tOADPbIbI3tsGTsaZjPZAruLi62Ftr1u6fNYF07MbCPSkrF+cpOZFPokpVNhD4EhOZRk9N/XutcIHI8uZoFrmp1nuY1O/0PVnORs13iJwCPyW7m5Vfbs/82xKakMFATTHmfgZD7RkgHzXGed4= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:06.2083 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 310cd144-b743-426c-9366-08dcf2142dee 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: AMS0EPF000001A8.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4P190MB1327 X-BESS-ID: 1729544768-302135-12937-43207-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.106 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.259883 [from cloudscan8-241.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