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 80AED45D36; Mon, 18 Nov 2024 12:26:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F51740E7C; Mon, 18 Nov 2024 12:26:44 +0100 (CET) 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 C332A40E2E; Mon, 18 Nov 2024 12:26:35 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2111.outbound.protection.outlook.com [104.47.18.111]) by mx-outbound15-68.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 18 Nov 2024 11:26:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Le/SbAPto8usJjl8l/YPYTIGzfpIUkqKLPEdVuqgGBOvRkGMLYG+4AWjapC2DDjdEwRc/xtcTyEAcbfCaNBsp70qoVd2KDIex5x+XPM68g0xwu99x2c5icwI7PWN1kFJ9oZBh7ydl21fboyorS2zqcDc2YXXCQ7lwppu9io8+sAam/zrkzcpAxFcME6/prmh7CY2wOD9Rc+mgqFyqVX+WHssyF6byCLv0B9cFfkI+hiYLm6lUDvnbcGmbQMX1auSvASWwXKMHdXsjVKc/9oI34Uu2nSvDh7xikGZ1uq1nMgq2lRWc7JfsybJpwC8zjFrfm+vNMARhXJUH42OURgWPQ== 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=h+20T5XBp6Bwqoq4xUftW4Q/UaIdTsjmP8lSf+EQl1E=; b=W6/0Jvj+CsbKmLeX9d5p0kViNUJFh1tdUe4YitpjHR09GeluHr7VC7I/iv/IVdAd2uYuc5sGkFt+ecgBmv3ygIKeQzFY5gFu/IFGK8TDAbWg7zCUcXgPVMVFfqsuxsWQihL+BcirrJ17ScSF5kZrDONNs/zL4vLeE5BS2CV0vVx1Y2mVxdbVmjV4DbPskVIM1i4AoQAPIZJCriKPKCbspscnpdfELZPtnOtHBoMcZqRVhmzwWWeEjaKAs35NGPRcvO9U/clpOPHUTm6xxFsHaSqN1v53Uics8Uk8FcpqaRvu4epvifdNDCCxbPDc85H8ZiTCMA9IkiFkxUpx4ATT7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=monjalon.net 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=h+20T5XBp6Bwqoq4xUftW4Q/UaIdTsjmP8lSf+EQl1E=; b=bEjeHdikfl8uSDJTbAx/iQGTq0f1tBEwTik+WHBzzh1C28zRCVHYZVe6AVZYdmpL+QW1/nAI5Xmo3CJ+lBjZNbJqN0UuhOwCe+HueOTMzduEJ9BilD5WR8c+I8OMeLDSqMK2J97nUZGwwKzsIJvklX6+Ikxl554wSI4UJtHbH9c= Received: from DU7PR01CA0043.eurprd01.prod.exchangelabs.com (2603:10a6:10:50e::21) by DB9P190MB1116.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:225::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Mon, 18 Nov 2024 11:26:30 +0000 Received: from DB1PEPF000509F7.eurprd02.prod.outlook.com (2603:10a6:10:50e:cafe::28) by DU7PR01CA0043.outlook.office365.com (2603:10a6:10:50e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23 via Frontend Transport; Mon, 18 Nov 2024 11:26:30 +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=k8s-node-23.default.svc.cluster.local; Received: from k8s-node-23.default.svc.cluster.local (178.72.21.4) by DB1PEPF000509F7.mail.protection.outlook.com (10.167.242.153) with Microsoft SMTP Server id 15.20.8158.14 via Frontend Transport; Mon, 18 Nov 2024 11:26:27 +0000 From: Danylo Vodopianov To: thomas@monjalon.net, aman.deep.singh@intel.com, yuying.zhang@intel.com, orika@nvidia.com, mko-plv@napatech.com, ckm@napatech.com, dsosnowski@nvidia.com, sil-plv@napatech.com Cc: getelson@nvidia.com, akozyrev@nvidia.com, dev@dpdk.org, stable@dpdk.org, ferruh.yigit@amd.com Subject: [PATCH v2 0/2] Testpmd flow update/destroy fixes Date: Mon, 18 Nov 2024 12:26:23 +0100 Message-ID: <20241118112625.1880659-1-dvo-plv@napatech.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20241031150010.2991953-1-dvo-plv@napatech.com> References: <20241031150010.2991953-1-dvo-plv@napatech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509F7:EE_|DB9P190MB1116:EE_ X-MS-Office365-Filtering-Correlation-Id: 39687e9f-4fcb-4605-bb67-08dd07c3d7da X-MS-Exchange-SenderADCheck: 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g1cTkzWE5SOHFn?= =?utf-8?B?UEtzcmlaZFFRM20zOHpjZ1RIMUZFOGdTR2t3djZTR1JoUnFxSkpTMnFjWjRX?= =?utf-8?B?dUM2QmRSWDdSQlZ6OFNpRGhkYlJDb3A4enpQVy9IVE5HWlVvdmRKR3JKWDg5?= =?utf-8?B?ZzA1VHczZG5oUkl4bVNJUk9JR01SWW4xWjY3UThDQ2tkckxtbXp5L28rMzFQ?= =?utf-8?B?S0ZvdGpKTGphbXhsaWJqNzMrVnlFZjZhd1F5V2RvR0xYalE9PQ==?= X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:k8s-node-23.default.svc.cluster.local; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: oOUEkgxddCVh1JssTJJs9b0YxI9xG3vf5qpX9DApCy5rw+g1efN4mpkM/tWkbHRrAPf1kIC7ZykZiTbA24RUge783kjNXLcObyPegvyGkZ85mT1gMKPDaIVvas6TNR0Dqkts1KLl/Y2iJlCgXEcCzbDuHyRMq+qjHm8K5euQXBsXIfm47oGFK6IhIMkLYZ0ZQO0k53MrqsL0r/23RlmwPIzQ2hITW0Ao0PSTF4Wq0UGhFk34df9wVdxvvy9Acs4/6D4LIPq35qkMRVQWkWAteSx2rmdCMhwoyvjSZqY5/xzsv6elSk2m07FkPaNF5d2onEgZ1+py/TiNhXKktirq8R/82CaRkyk/yyCjGnamwJgJilO7dxK6gYyC5MvJZBvYYEu+8afMCcirxgg90NOPcpM2nkBgaAPBI+zHysssqrvHHiUb0+q/eoU9XfEWW88qCrXqJe7dFXuC3AdBCsbFiXN/Ixjq2DTu+eRhUDLT9ye2sqnUnPKYrh1ofonTrDF3yr8rVaTO+P742DkzoHXeur1TNgyA+pi4f+HcSOxlRBT6+MxRYvyye2YeN55SpJ+hTzDJtMST9OVnsHCYWr7NUH9Nv1ddEO12QKS+9TKlZRHXXwA8Zgyt0aETydsffJs63tbqkCX5w2Jk3uGNS9hJiIcif690gy1b7MR6a31zXZI= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 11:26:27.3244 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39687e9f-4fcb-4605-bb67-08dd07c3d7da 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=[k8s-node-23.default.svc.cluster.local] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509F7.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P190MB1116 X-BESS-ID: 1731929191-303908-13344-4202-2 X-BESS-VER: 2019.1_20241105.1725 X-BESS-Apparent-Source-IP: 104.47.18.111 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVqaWpkBGBlDMNCXNyCzFwMIy1c jEyMDUMDnN0tTMJNkg1TDFJM3AOFWpNhYABFe0tUAAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260505 [from cloudscan15-229.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 provide next fixes: 1. The testpmd command “flow update…“ provides a nullptr as the context variable. 2. Avoid removal of additional flows after requested number of flows has been already removed. v2: 1. Rephase commit messages. 2. Copy user_id to the flow list for flow_update command. 3. Enclose the case's body for flow_destroy command in braces. Danylo Vodopianov (2): app/testpmd: fix flow update app/testpmd: fix aged flow destroy app/test-pmd/config.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) -- 2.43.5