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 6FCD145CD8; Mon, 18 Nov 2024 19:03:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E32A410D4; Mon, 18 Nov 2024 19:03:17 +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 964AB4025E; Mon, 18 Nov 2024 19:03:07 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2104.outbound.protection.outlook.com [104.47.17.104]) by mx-outbound42-231.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 18 Nov 2024 18:03:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LY81zeCpkWX+doShTAYZveskbSHK/tBmh6QQZw5cIjkNTs3+2iQkYQBvek8KqXrcbZImkSQv1bE9igXreX4Jhq9EXXEzAhgqA1fimVDXofVfsBzg6gAhiUPatBKcVBhoNrMXXICA2iV1n06JB9l8zE4VR1jYNQCRtXCe4aQj9OvMZw7VxyjincZZrKCkgsvjT1dktIve+FsxoGCYuVS0ZzwgNS3wVsPQqXOwXS7w2gIeGdtcU79n/5vh+epN0fCEihc/H7DH/aTluvzQu5dhuVBl/CUsWpNvXzWVtr8cU+NgAaCe1t+Pp2v1GOE8DvsbCNp1B84l5xuOZlDEiwhEMA== 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=rodbxy23pgi/K51Geps14Cg1Wxh8ijghJh5LUVUEDolXCEQvSEsesfV8BUg6URYOjr46wZquZqfifYMfbkXqxp0c3aHra7ewtDlxl1tkFODvBdQdxsMfaoQNwUOas1H1wjMuZCm+onac73KpSiEODr83Jgi+i9mrqaoGORtiClZMxn7c6XUyCvtU784E7260sPPoU4Uf8itE60MrAIW2Z49h6RsHZnrht23O7IuqxnZ4aCmMedhf34/2JjqxL644d3sh5Bzd09u7fsWYMbQKCmk81Ch7Apbf0c6el1oA7LQmWlG1YdNabGQqQgabUc8NttWOS+iGQcEjMiq5p8NrWA== 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=aDUQBlr2eHA8N864gIus6z9p63y/UHgg9VNm0LpImcrezY6ZfmvZxjKB/ASPcZm6gR1fkSMIYpN8ZArb1yDPEIjUTLkGEIuW2hVhZiMvL+0fbSuqbFhio/xmLDR2Ze5hYL1It7JWgb5bCggGP7LSNHob1qwH2STBHSGAgLdPCSk= Received: from DB8PR06CA0062.eurprd06.prod.outlook.com (2603:10a6:10:120::36) by DU0P190MB1884.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:3a4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.20; Mon, 18 Nov 2024 18:02:30 +0000 Received: from DU2PEPF00028D0D.eurprd03.prod.outlook.com (2603:10a6:10:120:cafe::b) by DB8PR06CA0062.outlook.office365.com (2603:10a6:10:120::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.24 via Frontend Transport; Mon, 18 Nov 2024 18:02: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 DU2PEPF00028D0D.mail.protection.outlook.com (10.167.242.21) with Microsoft SMTP Server id 15.20.8158.14 via Frontend Transport; Mon, 18 Nov 2024 18:02:28 +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 19:02:24 +0100 Message-ID: <20241118180226.2046498-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: DU2PEPF00028D0D:EE_|DU0P190MB1884:EE_ X-MS-Office365-Filtering-Correlation-Id: b7fdd899-db91-442f-70b3-08dd07fb2aa1 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?azF5Qy9SU3lPVkpyaDB2UUxqR3JoSTBnckR2L1ZYMTJpMGt0OVgzS0ZOQzZN?= =?utf-8?B?K01MV0d5SGZRUXQyVVVLNE9vQlhYeXVNNVFqb0ZlQk55KzFHMWFsbENHSUtB?= =?utf-8?B?eDhZU2FhS2FQNzBlcFFIdXpFdklHN0dBdUlNS0hSMUpzYkpnWXBxb3lkTWUr?= =?utf-8?B?SUNWVmpqSzM5U2VJUE5qT0l6THN3MnFqd0tLejZuWXVDOHorY3RmVUluN3ND?= =?utf-8?B?Vnl5dXRaL3ExcFlwK0J4c1ZPRms4bzFUQWZjRXFNWFd6c3ZTSmNMUXBKYUky?= =?utf-8?B?UVY2eElGdnBmb0xOZnk4QmJWSk1yWGoxVStwMzRhSUJ2WVgvWDd4dC80ZzNO?= =?utf-8?B?VStGaE83T3AycWpwNGMySDdFTkl1TUxtS01ZcmZZSU1lUE9STGdQaG5ZYUo2?= =?utf-8?B?dWwxSTcycWJPMndwWEVybGRSTnN4VTlsQStkcUFTMFBScDJpRGdqRkpSYklz?= =?utf-8?B?MUZrSFJMM0d5YzR5dytjTTVSb0RuZ3ZHUmkzajhUSzNRQ0QwekozamVPN3V2?= =?utf-8?B?TWV5cDRNeEtOM2hrMVp2NEFwclFtSEF0WUM5OFlLVkVxVFNTWUJseHRzYVZI?= =?utf-8?B?S1FjY3FCTHZNbXYwUmNvQk5MQmJrNE4vOWtYMkFNSkpvYU5aWCtlVzVvVURD?= =?utf-8?B?MzgzaDVhNllRUGcxYis4bHVTTFJwRzFlZklZL3VjN3ZHRzBqS1pIODBVN0pE?= =?utf-8?B?bm5kYTFaUjZKUVB0MDdxcFFTYTZxQnJUZWFjdTByVmFjbDhKeFVEUzhLWWJt?= =?utf-8?B?d2pYdE9iQUlmZ1MveVQvd3NuQzZUZTlLaE9iTkJHMWxDa2tU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LLzFrVlNxQ2hieFFQLzYvdWNaTzRwNUFh?= =?utf-8?B?clo2amNKc2RsekpzYWZndWg5NFNyRU10alYvejBkSkdudnE0cHd6TURtRmRm?= =?utf-8?B?WFM2MHJHSEh4MzZXYXlkS2VTWHFZMlpCQkoxTXpxeFQzMU9pMFozd3NXVzM2?= =?utf-8?B?WnZvQ0xEdlpabVRIVnRZREliUTM2aWpjci9OdFhtRGg5Qmc9PQ==?= 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: ypmBISYTgsVbY1bh5YB5e3Fc0o3HmYwcddss2Vji7Ma1p1kGhWAzx9O6kKM8NNO0cZwMrbGa0dlzu4GcA/Iq1ySmWBF33VCflYTuh9qw143duS+TFgUpcbpmwd3NQhPoit0NyeySEFp+vPIA9Aikor6gvyujI04GVeZMGEqjVYcqcBmbY150Cl2FP1uC3WS2/7+iHHtozeROViDgvb1WsYxER5KzLZncZb0zlrgBjQ7lTD9EBLJCGJCr3WuaPBK6Jmv4nd0gq0JlCafiXswagrfIai9jS9Sxtkqro/xNbiEqdLmh2mpl353eVvnT2VVMvv/XTZdLrdRsaqFKvUK39BqXP1rWt6nv670kKPHCukoK8iILsS2BwR9Ny8GWpeUnvd3T2k+ju1hquVJDC8lLArrvDlv2mPneDIdGSgnA7gFCK+IT2Ld39nLxxvocAgBkLo07DHm5kAK/HzLeMjDGY3Zg7LIAMk/LLl16PJt2Dvpk5TNOafFjgJOT8+/mp6UjOkfs42/gjwNdeq7hqkKUyuSA2haQCWL939vAOXMNzVvx++gBg9h7Wx0TVL8QkMlodULumPPXP/TewOFpd8dqI6IvmrGd3Tfygcc+6vvRJpkg/ZmvS71IJPEUM5kkLvEufMfKMvMTmoNuFAVS31aFlRRNiW9/C8Ewy8xcqBt0LKE= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 18:02:28.5356 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b7fdd899-db91-442f-70b3-08dd07fb2aa1 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: DU2PEPF00028D0D.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P190MB1884 X-BESS-ID: 1731952986-310983-13346-32610-1 X-BESS-VER: 2019.1_20241105.1725 X-BESS-Apparent-Source-IP: 104.47.17.104 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.260511 [from cloudscan23-104.eu-central-1b.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