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 798C2460D6; Tue, 21 Jan 2025 18:08:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB18A402DC; Tue, 21 Jan 2025 18:08:26 +0100 (CET) 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 557D04027D for ; Tue, 21 Jan 2025 18:08:25 +0100 (CET) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03lp2234.outbound.protection.outlook.com [104.47.51.234]) by mx-outbound11-0.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Jan 2025 17:08:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sns63pVX21Prn0NY/Cix7gStY+HigMBDgWgCJnZVMa8NnzvCnvGBWtLNeJlQ9lXlmmCK1uNonziM1Fp24tkfTgV7ouXrYcvBPjoJDs1b+Iu2bRXClEZaM8YSE2iMJsnRyqQgSl3D2eT/UHlvLiuleJKy9IeIgDcwaSuP94khbo3DUsHhJ3GPtJS4ihXB4fk9yKIXlp4kefL0IfqSNVsNGksYOrJhhUcwdZp+eJRUDEFl3s+uuEp29dgMOOEtAzNCNw9x1gkQV6CcNphK+IBJUdmaKfP4+Zj04HMSCjJ0S0ixG5IHogFShKBMsJHOGQNyXCMA+i1ycZkcu0kuYvAm4A== 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=ffOhpS8YfqkR/EhfEMlGlo0sDD5R9WkcWuluS4IdnR4=; b=xV1uj0Hr+yEKnIAwigCelfyNR3zaOHGarzNUkYfNRbhM4M2l9Mm6zg42qsWXPykUjAFHZlhmMBWlp5XhMDZlsPAsgShFZF3e4EW6Mhg/XZ3fVm4MHR3UsBA7Qh9jcx6NGN42ckCzPuSGg3ktwKsOieMf1lI3eEHKAhiaJTg5KDI+bRYHB9Jt7hjTn/cuZAQJH7OcGOo6G5QFno42YmRNJaaJNGjg/Z8abFKzE6mPFOCco7gGbQ7RWxWRLkhbOf0oHUDl4umZjYuVvwr59wycgdtSOntjyDYXbf1Q/E61LpnrOmK9wqO65uXl9qVcryGUIkggYTcscZy7hej6J21pcQ== 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=ffOhpS8YfqkR/EhfEMlGlo0sDD5R9WkcWuluS4IdnR4=; b=LmjRLzcKk69WZTfkdF9wF4/IiXNxfibf63n1AiB7LSzwm9x3/HUH51ZAxhNIn63LPs59fZ3/oJaytoh/dLdOlU1zgCp3ZyszetU5+Z8Ew/IRP/N85XYh4FOxLVfCLpF2jCeTD9+hDCL67k42F2mxudojErAPz5oUtbZGKOfIjQY= Received: from AS4P251CA0018.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::10) by DBAP190MB0920.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:1a7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.20; Tue, 21 Jan 2025 17:08:21 +0000 Received: from AM2PEPF0001C70A.eurprd05.prod.outlook.com (2603:10a6:20b:5d3:cafe::aa) by AS4P251CA0018.outlook.office365.com (2603:10a6:20b:5d3::10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.21 via Frontend Transport; Tue, 21 Jan 2025 17:08:21 +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 AM2PEPF0001C70A.mail.protection.outlook.com (10.167.16.198) with Microsoft SMTP Server id 15.20.8377.8 via Frontend Transport; Tue, 21 Jan 2025 17:08:20 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, stephen@networkplumber.org Subject: [PATCH v1 00/31] net/ntnic: bugfixes and refactoring Date: Tue, 21 Jan 2025 18:07:38 +0100 Message-ID: <20250121170814.3252171-1-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70A:EE_|DBAP190MB0920:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 042f1249-c749-4757-0f9d-08dd3a3e34d6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?2mlEeczmkBoVvwPVdrgET0duHmFKTJuWjZKzZvdl/KEOyqKwZpO+p5X8S66U?= =?us-ascii?Q?X4zLAAUjGOY/pgtTb4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2TyqYxp?= =?us-ascii?Q?5C3P5xI0/JOwYuMAGNOijuLUySRfwZLVoIa2zbgnWQbARAQcDyjoCNmcTnPc?= =?us-ascii?Q?tpv9t2X+L0SBFHfUL60VP8t2+EHsR7PoO1njS548DjLDLNtmBhGI3PcW9gKG?= =?us-ascii?Q?f92eXcMrqMbTZ53PiTIjhshxleiHN1R+syIOLDeiqRvSfqeWGpcx8dvbfLrc?= =?us-ascii?Q?vgW2aoMA+gk6FgHWP68TIbyllEYMvKNsGM+7Vpyvx12pg+MBGpLdpT41/uus?= =?us-ascii?Q?cu75ZyOscQAAKIuIMaQvdAFAUUqGzXb4vIG54uIzkFvAAHHc63y/iQFUn6QI?= =?us-ascii?Q?RZbnuD9u8kMKWEn7B/eyUkPo+Se4Pa+ePRWmgzz8HX3gEVnYRMnWLQw16flV?= =?us-ascii?Q?u00qc9WfRz7q81/SiygbDWeTkpog/D1YtofFqSfwMywBnpxaYthKX5kAvnqZ?= =?us-ascii?Q?2DxQIaBKn1mKJBKmhaDO4ATFoIDgrDenfHz+pm9nXeApOUM3gTUB+IjrmWvj?= =?us-ascii?Q?J87vm82Cu0QQoIyBzOYL22KkLphBqAGSKJnrNkZ24RrrBaykOQ+OGYUBfA7C?= =?us-ascii?Q?TQmuGHhUiZ6cDP0=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)(36860700013)(1800799024)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: STC5g4D4Y9dOMVijti3VicKdRkIJgbZqJ6kgnJN7E+MyRRjU+K/WWceqnaRjgM9l7Z7m6UP0FanCobHZ64TdcvO4QQl8AT7274cqralT9wcfkzIZdruJmYc2uXmsgFbKiOjCtYIoaM89agTyD0hjKDcp4HrTW/5Dm7YN/Lg5sOXDOQ+LOdiyLGTFscXHdkGSGYOTK9Ly+E5nud61gDN+AAK44PVW/FEOAbtLV1uVAr1MQsqmuwlMo/Lu0nXEy93Jjm4poFLB+vZsb0v4D/AFGDcZBQCVAcExV7Y8+qvxNEs3jXUJVCOPqc8B4HGT1m0DKwHILEvNJ0TNOHRJRLGY+RsxFKU60vaD2PuDQuDsHBrAw+4ouL0LwasinWEBsHb+nLbAT+/FQABfiLuMVOUwiUoLdNaxJmpvMx+TDPs6mC71DfLaxjKej46PG8LtUSbK30f7hDkonetHLkqRjclKqrfzYybf8o/quBf47Gzs50wpcF8b606RVEo8F7g76GgvHZxZHzIhwM29fMVIOUti/CLFlch9tvPjLOXXGsJoY66/57f7S1Xxar3JL5Poy/7XLEYwjVtYVRlNR217qwp9vFLkhi1Anx92SGrygXCZXwFB6DUYV2MN1s8NiNSCr/pRelemfk3vgl3kYOgMbfkh/w== X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2025 17:08:20.4212 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 042f1249-c749-4757-0f9d-08dd3a3e34d6 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: AM2PEPF0001C70A.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP190MB0920 X-BESS-ID: 1737479303-302816-13348-7939-1 X-BESS-VER: 2019.1_20250117.1903 X-BESS-Apparent-Source-IP: 104.47.51.234 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkaWlhZAVgZQ0MIkNS0xNTXNLM k4zRwobJJkZpZkapRoaZlmZmiRbKhUGwsALlVYdEEAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.261957 [from cloudscan10-25.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 These patches include fixes for issues detected by the Coverity Scan tool and internal tests. Danylo Vodopianov (26): net/ntnic: fix index verification net/ntnic: add thread check return code net/ntnic: add return code handling net/ntnic: add array index verification net/ntnic: fix realloc memory leak net/ntnic: fix array index verification net/ntnic: add var definition transparently net/ntnic: add proper var freed net/ntnic: remove deadcode net/ntnic: fix potentially overflow net/ntnic: add null checking net/ntnic: fix overflow issue net/ntnic: fix untrusted loop bound net/ntnic: add null checking net/ntnic: move null checking net/ntnic: fix var size net/ntnic: fix var overflow net/ntnic: remove dead code net/ntnic: remove convert error func net/ntnic: fix array verification net/ntnic: fix memory leak net/ntnic: remove unused code net/ntnic: refactor RSS implementation net/ntnic: fix age timeout recalculation into fpga unit net/ntnic: rework age event generation net/ntnic: fix group print Oleksandr Kolomeiets (2): net/ntnic: remove extra address-of operator net/ntnic: remove extra check for null Serhii Iliushyk (3): net/ntnic: extend module mapping net/ntnic: refactoring of the FPGA initialization net/ntnic: remove tag EXPERIMENTAL MAINTAINERS | 2 +- .../net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c | 9 - drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 10 +- drivers/net/ntnic/include/create_elements.h | 1 - drivers/net/ntnic/include/flow_api.h | 9 - drivers/net/ntnic/include/flow_api_engine.h | 2 + drivers/net/ntnic/include/hw_mod_backend.h | 16 +- .../link_mgmt/link_100g/nt4ga_link_100g.c | 2 +- drivers/net/ntnic/meson.build | 1 + drivers/net/ntnic/nthw/core/nthw_fpga.c | 14 +- drivers/net/ntnic/nthw/flow_api/flow_api.c | 67 +- drivers/net/ntnic/nthw/flow_api/flow_group.c | 26 + .../net/ntnic/nthw/flow_api/flow_hsh_cfg.c | 661 ++++++++++++++ .../net/ntnic/nthw/flow_api/flow_hsh_cfg.h | 17 + .../ntnic/nthw/flow_api/hw_mod/hw_mod_flm.c | 14 +- .../ntnic/nthw/flow_api/hw_mod/hw_mod_hsh.c | 19 +- .../ntnic/nthw/flow_api/hw_mod/hw_mod_pdb.c | 18 +- .../profile_inline/flow_api_hw_db_inline.c | 29 +- .../profile_inline/flow_api_profile_inline.c | 817 +----------------- .../profile_inline/flow_api_profile_inline.h | 4 - .../ntnic/nthw/flow_filter/flow_nthw_rpp_lr.c | 10 +- .../nthw/supported/nthw_fpga_mod_str_map.c | 24 + drivers/net/ntnic/ntnic_ethdev.c | 16 +- drivers/net/ntnic/ntnic_filter/ntnic_filter.c | 155 ++-- drivers/net/ntnic/ntnic_mod_reg.h | 6 - drivers/net/ntnic/ntnic_xstats/ntnic_xstats.c | 10 +- 26 files changed, 915 insertions(+), 1044 deletions(-) create mode 100644 drivers/net/ntnic/nthw/flow_api/flow_hsh_cfg.c create mode 100644 drivers/net/ntnic/nthw/flow_api/flow_hsh_cfg.h -- 2.45.0