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 939CB45D39 for ; Mon, 18 Nov 2024 18:34:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5ECAE410E7; Mon, 18 Nov 2024 18:34:27 +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 AA88240150; Mon, 18 Nov 2024 11:25:37 +0100 (CET) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03lp2110.outbound.protection.outlook.com [104.47.30.110]) by mx-outbound19-21.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 18 Nov 2024 10:25:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bGqOaphJsROmxAfOXj7HYM6gGYHnXQd3gFBbDLKoa+oDH5NCrp7RAcVehLzi/U9s9/xMsn2okfGMASjN55vjEOrISMpmTf55HazmOkokgOuLdhxIKSyB0mfcbOPINFe/BI1zZmoNiFXkMKiT3d49x3zySezZqU4qumoGmTqtgk7+u1nA0adQ0qbANuOeTJCUa//TeO8bIaQkP2w4k7q6KdH1h/m9Nsz9TDY908Xsvq/rMpaOkYk/1USnG1wL15GtJ04W3bRUyUH+8i2eiLJL5ICZKt1mYjSVr6lMgyz2urJGce6Nf3Ey/vPNjJ5iBIgjgc9qiGQP16sxTINS2+dNIQ== 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=PGybvw3EykGQt2W/kIBd4mRHUJwtX5abiLKDEWRhc+hRj1756WGbqZDlXdEOoJPOaaeEB8HzPBWlHkVHVWPnuZclYFi++Nn08qFQJXSXoLipAGMk/gCJb3pmq/gx3KZXvSHOsmRw++EpJ6S4aj9np+EMCeljZAGsVa2Md3w4LAGi+xk4uFbnrD/VORWzgm8hcXe1od5e5SHCi71LqRXvktW90rJVwpTv1LDL4zKWcgoMMmtr/4nt2p9k202oU6WUlGvjEpn4bLDHM2rQAr8WxFvfeLdR1IkMGj1+YXNkAkO6pOc1nUPyFO5C0Zjfuv5co7VUPa0OBepqzVF7Y/nHQw== 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=kudF91XTD6kHpcR+kIFIHLVxstRurcgAQr44XMW6MwasiHlVUsuEBg5RMB9LuxM9ZYRwgcIcOSon5gtP4CfMbCbAvFVfoxI+b3Q3cUM+KnL5hkWwlvEglBeWtKb8ONknbyly8Oj4D61H+qRtd8j9aP5wfG3C8WEYJJOA/y8l9R8= Received: from AS9PR06CA0079.eurprd06.prod.outlook.com (2603:10a6:20b:464::13) by DBAP190MB1016.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:1b0::18) 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 10:25:34 +0000 Received: from AM2PEPF0001C717.eurprd05.prod.outlook.com (2603:10a6:20b:464:cafe::36) by AS9PR06CA0079.outlook.office365.com (2603:10a6:20b:464::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22 via Frontend Transport; Mon, 18 Nov 2024 10:25:34 +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 AM2PEPF0001C717.mail.protection.outlook.com (10.167.16.187) with Microsoft SMTP Server id 15.20.8158.14 via Frontend Transport; Mon, 18 Nov 2024 10:25:33 +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 11:25:26 +0100 Message-ID: <20241118102528.1858308-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: AM2PEPF0001C717:EE_|DBAP190MB1016:EE_ X-MS-Office365-Filtering-Correlation-Id: 2519231d-a5eb-4960-22f3-08dd07bb55f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?B?by9UUm4yOVZiaWhxVFdsZmdnUVAwT3J1MmNPbitnUXNPTWw3SHJxWHB5Ulkr?= =?utf-8?B?QjNvNTJzYVdiTHBaMlFvSnlVVVp4TVZWTVEzTkx2NHFTbEtGd0hKOVdmcEIx?= =?utf-8?B?VjZ0N3lRN3BJSUo5TUw1ekVIOUZjZHF6UDZsSHhENFZnSFBjVWJpTFZmU1JT?= =?utf-8?B?U1BxUWIvcXFpSmd1RkdyZ0k1WDRvUHdVS3VrVE1kSUQ1NXd3RHA0OU84RERO?= =?utf-8?B?M21hOGdpazA1Njl4TmNkWFluOEo5K2hpL2NQODM1WHRQRXlwMlFldldXVXlZ?= =?utf-8?B?WUhSVThWK1dSMjd5L1FNY2J3dUR3NGJJTDhseE5tOGNDMGJ6WTd2VExaYk5j?= =?utf-8?B?ZFgvenlLWDNCSlFWZ21ZQXd2VkpoMHZkYzJKM0U0d2JaUHNpSXh4S2JLaUY1?= =?utf-8?B?cG5SRkdzWWpVNDRkVFdlbW1VbUE2a3gzYU5VS05BcDdsYXF5U2NKeHNpaUQy?= =?utf-8?B?cmRVdTBvT1k4a3Q3aXAzK1BiR1NwVlFTQ204WEUzazVBQm1oalViZHRrSEhk?= =?utf-8?B?Y1I3WklqN1E4MXNiZVdqMTV0T2wyd3M4Nit6YnpSSXJrOFNISzZsQ2FGdUN6?= =?utf-8?B?NEVpTENqemd4UmhCbTdUUlFwZDc0a3AzK0d2WUdCM0lHTnlZYUdHWFdGUkph?= =?utf-8?B?VVNIT3ZtTlYzOXVHcjI5NnJPak5VSEhVblNwUE9qcVZyRFkzbjRhb2UvdjIx?= =?utf-8?B?aEtMSU80bFZkTElqbThtNzB4VzY1V3pnTGVzelhPYkFhQnkvbEp5NUIzTHJI?= =?utf-8?B?bzd4UE91T3hwazkwUlVtVGxBd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x3c0llSWtkdWZITndHNkdlMDR6UXljbUQ1L3haWWlFK3VU?= =?utf-8?B?MTZqdzIvd3psbit5NnkzZkUyQzhtSDNIek5vUDZQUXZxeFRGeVJTV0JNbjls?= =?utf-8?B?TGZMZ3pLelN4Z1hZYkpraEpKRG1LbmZmQUhTRG81RzdaNmlHOE1TVmZTRVNT?= =?utf-8?B?bDExdEcvTUxvTFRIR1ZBSUlNbnUrbm5Yb2RyNncwMG8vS0E9PQ==?= 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)(376014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 5AJBkjlrniHhTahS+mCEJ7j0b6I8qbrRNnGEOa2jKapVwudVX7GPglAsEEmMnwT05duYXuqXBDd/nIfr3TP/8SQl4E86w3y9krEP/XY5pPTP7Au/3uXK/ADVP3BVwFLtIyfupCRJHBlv6Fi4XBp6bGP4LwPYQuARDOZFhQRZCfFx1mA2H6HJIKGbazFkQdBKy2mMBQoVYu/rp9+iTXzhsau4uLIp6Ro85xyhHqNjDeMY0wRJ6Yh+mEC8/CxMU0XJCy35Fn3GjFqsCc2N0+gv9fbvJzY8JsgYmniM6DNSaC5URwmUGjZEWDFHyqOyIuNGbmKs7KMq4We2rQ9FjcYAjK3fMZLsVpwF4HWRFs3AERuo4GCE1m9pnMQUWk32SpDZJT5fI8K3hwhMFCBQOxIIpRojNwCJDVgLIGE8XG2g7Wl4wcFEkTvLLUvAqEmfjvpHBwe0QDPbDJLXbEwtjnmwCl1KPkKHy6HppQ5I8sJuVqjn98W2vOfISVZD9M7bYq0mS5UF7YOlOnnlgS103zXpIqRyCYzJgQr1H90Vk8vXCvOEOyEyMqPTKOIE65oL0jvSQoq3Y1CwyCnzI0iRh5MhsDVC1g0mXd2a+N9eoD1wYGFz7mpjHGxP8A7tnmChWyX5M5BS7IgCGz2260YoOHfQ4IJeNF9mpBUjqDundJSAjs8= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 10:25:33.6254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2519231d-a5eb-4960-22f3-08dd07bb55f3 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: AM2PEPF0001C717.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP190MB1016 X-BESS-ID: 1731925536-304885-13521-3369-1 X-BESS-VER: 2019.1_20241105.1725 X-BESS-Apparent-Source-IP: 104.47.30.110 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.260504 [from cloudscan8-70.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-Mailman-Approved-At: Mon, 18 Nov 2024 18:34:25 +0100 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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