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 67A2843C3B; Thu, 29 Feb 2024 15:48:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20AF1402CD; Thu, 29 Feb 2024 15:48:56 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2087.outbound.protection.outlook.com [40.107.93.87]) by mails.dpdk.org (Postfix) with ESMTP id 295BE402B4 for ; Thu, 29 Feb 2024 15:48:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZdETcXL04rtQUZA0d6K6EvAIlELGjr1reMtXT0XIBOUQMhxt4DWUHXHYBegUaXiMIWMKQG0PIL9Xx8ag2bqzSopsu7QDKXYp55OW4aA1RRAxjznhICLCn9P0WAiY7h42QjMBmONILaAw8Kd+IjeBLEQSSLGLg4HTPqcOVRjqVUYXtCSNybYvVwRuKKvI5JrGkwQrns0pSGdKlEzJd9RtAVB0zY/GXAqFQsmhOy6BLLuu0RWHu200oKkh9004h6hZY63NxZ2QBlGayyk8cbh+Jvhp9R3CKlf40IcyhDTYo2LLowrLe2LlhC+LpfnKCcBy+Rs1fHDJdUXV87/ChJtCAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=dV1R+TXSSsjsovnEJkuEF8bZghN09QRtIpEMBMoIF2s=; b=MQxz5V6wC0GkDnekbczK8tXccOmmXEY4GtsGPVJ/Ws6QG6v9/myzb0jwqILabr/yGI6tatZgVGfoskzw8f8KrREpDbvKcvffamL82EuHAulfHRsmVuM9X8VNjbUnekiNp+s5ffVIlQuh0WIKGJtfWEBJhvt6F7734apfAbnTU0OzAfjaqbK59KVeL5x57nth9o2AqERJnlPu12qFzYma8XpuQB3+lE+J2zOhLenqRAE9tBBmd0l3wYKm5NPf5ARWx+TUQge8yDtbL4rCH2eG0yXJDGeobEdn88MQsfK0zY4Hk6vUVb5mFy3oyyrqFsURBPxXoR9L+uB2KnQsTccNVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dV1R+TXSSsjsovnEJkuEF8bZghN09QRtIpEMBMoIF2s=; b=PqoJ1vu9ph6L3A+IwVs72G5z6CIf/qST0eUfVI2AqO+uXx1vUusRiVvUdOhnr0YsZXwgQy7iCOzlBbAA5hXww9pBNrff+d2figrexp6tXFQViDTm9MipXvi6fuSpqRoe+A4WbG74ZA7GaosaRe4Z+cli5uFD1c0ogpPNlsgTrTI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SA3PR12MB9158.namprd12.prod.outlook.com (2603:10b6:806:380::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Thu, 29 Feb 2024 14:48:52 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529%5]) with mapi id 15.20.7316.039; Thu, 29 Feb 2024 14:48:52 +0000 Message-ID: Date: Thu, 29 Feb 2024 14:48:48 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5] app/testpmd: support updating flow rule actions To: Oleksandr Kolomeiets , thomas@monjalon.net, aman.deep.singh@intel.com, yuying.zhang@intel.com, orika@nvidia.com, mko-plv@napatech.com, ckm@napatech.com Cc: dev@dpdk.org References: <20240223041919.131526-1-okl-plv@napatech.com> <20240229021511.5850-1-okl-plv@napatech.com> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkd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IV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240229021511.5850-1-okl-plv@napatech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0298.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:391::8) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SA3PR12MB9158:EE_ X-MS-Office365-Filtering-Correlation-Id: f42684e7-fccd-4379-308b-08dc39358bf5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oLgMr1yRon4o7z+vEL1kQkiA4heQNQPKbOdliq3kmLMYb9uxShmjFzsnPNwgTt5+cd/JO2SGsFeOTmrO8CiT/TdFeYIHd7/dbRsRQgZvHc86L8v+pzd+0zh8VcS/Y0biG7gGIJpw6rrNOJntQOIfnADls1ezgbwd+bVduZQ/exHvn6DWA3cvb1eEhc4Dd/ctaTTpp6bCBUTtU+iHuvsbZVzBc0qBmGoyWpcZ1zKNm5XEyj85EnR8J0bWADqrC7dcxRHLHH6LwwKos5cB5JOdFn5M4WX34ySlaC6yJV3OodrvMoQYqS5PSbRdJY2pg/fNlqjj3m/uCVtJNbFME2kEOTU4A10GFKmTRYsJwRt2MNnyLO2Pq9uM/CGtuuoxB4jAGOdNuM4SoYb4oVhWAnO7Dq7oehalxxPzIeCSrpmnG0daJql/Xm4aTXXiZrpOcXGZvYXHwE4qRuIOVchzK6ztv8UVPP2RzxdSOTU4fg1yAPhDWGeSKi4e+I5sFcJryK0TihwsxSUnbCDmDHgBGNhgwyNb74QSC2Vbm6TmJH7cQZcgbB1xfD8vVB98Lt/2hNwzFvyhI0CeHmLprWSYGE0COxR/nmbolveZPKWwEW/zp2GMn1HWxmyXpDrOYa7/oEdZ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YldWSnN4Y3NqSnZiejRzZnBVM0tQS3BMQnFQdks4R25JYktmM2xqMHprMUVk?= =?utf-8?B?aHlwazRYMk5vMTgrYmRTeGRsYU5UVmhjNFFNZWxMNjRnWHNiUnRhT094QXZj?= =?utf-8?B?RXBLbnlEM1pmdDg1cGVkNlRzZUdLNU5YbkUybDMvbVl2S05DMWx0VklPd2Q4?= =?utf-8?B?TFI3RUdLcHVBcUxGdEZXODhjb3VBWUoyUEJvVThGUWxKVEVOc09CdHUzQXJt?= =?utf-8?B?S3RqeGo3Wm9MbUF0aGMxbHFCWkU5UjEzSDZ4MWdYUlFBNkhQbUMxdkUvMVpm?= =?utf-8?B?TEkxcjA5VUZPcGxTL09hMkl6STRRdGUwTGFxbzFWTC9ybFJXMFNPKzNLeDV3?= =?utf-8?B?ckNtY2xUcGZsd0lzR0daNVJZOUlIdTREY0gwS1g2K1dCRDVjOWhwTVRLWkl2?= =?utf-8?B?aGhsZHJvelMrUXBEV3gzbWdpUXd1UGNuQVhvTkoyNGFEYWFZa2lheEEyNC8r?= =?utf-8?B?QlZaZ2RCd1hZdlVNOG1POWhuQlRhS091cUxxTnRjVDJxaitRWEFzRUVZaHIx?= =?utf-8?B?bllsdHZOUmtzWUIxZmhPeUUxVkNxd3JNT3pldGFNcFJCNE1kTHdlc29RbFV5?= =?utf-8?B?SDN1RzZCUTgyTFlmWXJWMnY5VEpWaGVwMG5na3NIcEhjOFl4a05QUWI2RTM5?= =?utf-8?B?dGxaT3gzdHNJc21jRVAwWHppdGtOQ0tkMms2UUhxU3dNWW1kTm1jbnJFS3NJ?= =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PaDl6a01BSndhYWZpNVBDQU1I?= =?utf-8?B?MUhFUDVIajNxdnVwS1hGS1pORkFRcCtveDMyenN6UWxNdGpYSitDMDhJVHcz?= =?utf-8?B?NmxTTDFDNDU2azkzTHl2MGQzK1YxK2VPWjRibzhLbVNVZlkwWmtLYkUxRTVm?= =?utf-8?B?SzdIeXpNOVFxaGVQK3ByYXk4R25yVXJUaEtWd3RzbTk5NHNJallrSGkwajU4?= =?utf-8?B?TjZIMzFhUW9PWlQ1clRFckUzS09kMHJxNzFVSnU0SUdXMHVCcGZhQXpnNGdm?= =?utf-8?B?c1V0SmZjQUJCeCtWMWhxZ3MxMXJ4WmdjVTNvMVJhU3dYOVRWNXBUc3c2djNG?= =?utf-8?B?aDI3Qk1pYk80eEIxZFU3NDlJODUxb252ZHdXenoxNDZ4V3M5b2o4dzJVdTVp?= =?utf-8?B?bVYrS1VjWVkwZzVSUGZKNnVQTjVmb3gzTXhDVThQUWxaWnA2eG1jOW1YTkpG?= =?utf-8?B?SkFjWkJOc0lrZWd6UVV3STV5KzVtcnpFTC8wMWtycFd6N25jSHczbEYxNFM4?= =?utf-8?Q?AwqwzQ4RoHyN+p8qLYvb1Pfck?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f42684e7-fccd-4379-308b-08dc39358bf5 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 14:48:52.6045 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OpDRmNDZvIQS36mDGZwFwkfiNckihQJfsAsGtF8Gg+9R6AnnEFnRHb1rFfw0wLpI X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB9158 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 On 2/29/2024 2:15 AM, Oleksandr Kolomeiets wrote: > "flow update" updates a flow rule specified by a rule ID with a > new action list by making a call to "rte_flow_actions_update()": > > flow update {port_id} {rule_id} > actions {action} [/ {action} [...]] / end [user_id] > > Creating, updating and destroying a flow rule: > > testpmd> flow create 0 group 1 pattern eth / end actions drop / end > Flow rule #0 created > testpmd> flow update 0 0 actions queue index 1 / end > Flow rule #0 updated with new actions > testpmd> flow destroy 0 rule 0 > Flow rule #0 destroyed > > Signed-off-by: Oleksandr Kolomeiets > Reviewed-by: Mykola Kostenok > Reviewed-by: Christian Koue Muf > Acked-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.