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 AE03A45CD8 for ; Mon, 18 Nov 2024 19:03:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A7AE0410E7; Mon, 18 Nov 2024 19:03:43 +0100 (CET) Received: from egress-ip11b.ess.de.barracuda.com (egress-ip11b.ess.de.barracuda.com [18.185.115.215]) by mails.dpdk.org (Postfix) with ESMTP id 206CE410E7; Mon, 18 Nov 2024 19:03:34 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2104.outbound.protection.outlook.com [104.47.18.104]) by mx-outbound19-89.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 18 Nov 2024 18:03:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VivSqNeP8n36iTnN3x7Do58RRUfoY6LedRk6S8AE3Nk8m9LXIGHT3/02YOzSJ5PpQNC5BiRvI09PwyKbC/GXc1+Ha2du+PP7vb0o9aKFgg5BWuf4NQB4aiUs2oGZHraIJzrJgi7DGNmBxatnpRsknqa/Fdq3s9bCUdhbSX4hHl+Tis7Ap63kKkYzbj4OeQjRq53tdhF58JtJ8eQWE0Chd46fLYDAiTWkZqoUXFDcbE+bseXkNgdif7SmIj+BguxgsYieYj1yK/Jjp7i7Kt9/anoEZXAg3XEricAiW61MQ7RHA7fcMS93O9dx+coAA8RfR42CliAP5o1ktsBkyV18vw== 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=B70BStUDD2V6hz0UePn5DjGD0GlWLEDXQkvFR/AWtMo=; b=It+lgzDxpTQnpQ2bp7kNN0VI8U3JkyPfwI6CNqPfr3C4kzO+eXTuCOiafG832ey87EaSkz081yLgEN+MW8YDqAjTEw9mnAf3ydOsB+lNpuH0FTkz33Ke3xQKLb7b1dHIQrvSsmcZUC04rbtRYW+T2Q9xiXcj9ui4ZcV8isg3/KeUPbYm6vCWF4Kp5eQQeMtJsgmHXOI77Fy2qieuLL6xfliWegnvllHxD8nL9vZYBrwDhGNS5LYvO5UOtwxAl0whVsIksfJLmngvQpJ7cLcz/jZvGz56prmHWyXjLk1zccGu0qmyXXYsx87YPgv6qWvCz2tvM3w7Cix9WSaIvaF0kw== 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=B70BStUDD2V6hz0UePn5DjGD0GlWLEDXQkvFR/AWtMo=; b=a7DNRw/XOG/40Y0u05In8V8J8DMi4+XnWZAQ8n6dtuI1HHaigyhPaqRdfBNWTxrLzQGsrQKc0oxbyaJ9JcbY/JOQeHP0v3jj9p47GWvhS9R+guaSOXzN8i/CRtPc52h3zMe38T1aYRXoNfU4425rgaxa6cFFLcX7q46gQDcQAh0= Received: from AM6P192CA0108.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::49) by VI0P190MB2061.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:205::14) 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 18:03:30 +0000 Received: from AMS0EPF000001B1.eurprd05.prod.outlook.com (2603:10a6:209:8d:cafe::b9) by AM6P192CA0108.outlook.office365.com (2603:10a6:209:8d::49) 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 18:03:29 +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 AMS0EPF000001B1.mail.protection.outlook.com (10.167.16.165) with Microsoft SMTP Server id 15.20.8158.14 via Frontend Transport; Mon, 18 Nov 2024 18:03:29 +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 v3 0/2] Testpmd flow update/destroy fixes Date: Mon, 18 Nov 2024 19:03:21 +0100 Message-ID: <20241118180323.2046886-1-dvo-plv@napatech.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20241118112625.1880659-2-dvo-plv@napatech.com> References: <20241118112625.1880659-2-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: AMS0EPF000001B1:EE_|VI0P190MB2061:EE_ X-MS-Office365-Filtering-Correlation-Id: ebbc344c-80e1-445a-798d-08dd07fb4ed8 X-MS-Exchange-SenderADCheck: 1 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?utf-8?B?SDM2NXpXaENwQWVSSG1GZlNCQTF0OVZxNTJLQ1ZXYWNFM3pDNjhSWDhiaWZ3?= =?utf-8?B?MzJJWThFWkJtekFmSVE3NFFNdExBUDg0MlpKbk1lam5yeEk1aTZWNFg5RHFm?= =?utf-8?B?cjJqazFlU2VNUEoxTlFEMjg0NHlDY1RGMUpzZWh6dGk2a0RiMmRCWVNPdm5Y?= =?utf-8?B?RjF4VTVwTS9nQWdqL09PSVlKbTlwS3lXcVVob0plQURWOXc9PQ==?= 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)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: sgSx0rsRA52S82WDbndXnh+6TNVoEFlOWk0uMQx7zu5gLjUGKdNiZwpnX/xS8ziWu6KNxvDLe7qWbUQg6PcPMs9mP5Di7cQaBttzAzSkX9kXvn9ei611LmyPKIYydUuAf3eFJSrys/KZb+TYv7nA3HDjqnIg635OUIq72fRLWjQj7UTdisoCUVj5hrqTMYpWCM4xmrEGEdj0r3VgOfsCKu9fXtjSo2CVt3qr+4EFNbKdrtvxP2VSSzgMvHKAfVeKZXpn+BVQXLWbhbsuV+N2Nq/K3l1gTq4kyWWCMNVuul/ctqFceCbOqMg/H4N0UaMO2sDrAkpe9WbGCfoy7R+S4vpMjeMzNpbcpiZpAxDD4OMiMTQaNgG4bCvyFcEU5Qjh9VX/QxGJF+kvKvAnqEYlOGL2u36FCp7c0zPljgdkAw19071qTgk5Y0iWIuMhIAULkgsWFFN5OVq7VCPwhSjf/nrjN96247SitEloZMWq1M5hOzUGafKofSAgZUd2vb07dEtSV2l9c9WQMva7K0IB0IKFXy/XQiTHeWVJsNR1k1S3d0kD7pVntcMFycD5j2ytTcKK9+r0WiM7fhAIGl5buiQS9+nIGaN7i3gLYiDEsYyGv3nml6xOq+LdcujGgECfFJKqd/srVeEmSwuIyjoXH7zyy7bbcjvl7XirDiVqSfM= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 18:03:29.4973 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ebbc344c-80e1-445a-798d-08dd07fb4ed8 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: AMS0EPF000001B1.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0P190MB2061 X-BESS-ID: 1731953013-304953-13346-35784-1 X-BESS-VER: 2019.1_20241105.1725 X-BESS-Apparent-Source-IP: 104.47.18.104 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVmbmRkBGBlDMOMnI2NTYwMzMNN nc0iTJIsnYMDHJItU0McXcIjE5MVGpNhYAzY8dX0AAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260511 [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: 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. v3: 1. Update commit message 2. Aligned variable declaration code style Danylo Vodopianov (2): app/testpmd: fix flow update app/testpmd: fix aged flow destroy app/test-pmd/config.c | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) -- 2.43.5