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 EC58843AB3; Thu, 8 Feb 2024 02:10:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9266A406BC; Thu, 8 Feb 2024 02:10:19 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id AF5BA4069F for ; Thu, 8 Feb 2024 02:10:18 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GFpS/xJIqAiG77xNF0LbWx2IUpzriVzeg1JyQicw4Rz+wDT5gY/ixEAzNHrdmswSIZSt7sNQdLMYVdFklWKGYMx4QKO569xZzGWidzNwlGqiaS3g9yzq40A7kGb1/TCz7llLxE4nvFQ/24dbgD1esaNyhsQbVGz+ezNLuTMZroDrRfZxPlOZhp7jGGe7BRdmBKphbq37rSQjFQOawgcfe3inpgptg8IlkvWsE6Ruufu3aLOzwp/LAj0TNuRK6ifZHRaUfPdx/AfUmKLsovm3y/FSeWMNrxrmjvLEP/l93T4TNF0j13n+iAYgGIKTtjlBndwIe5xCaYdnpGF/4H9MtA== 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=3Nbmv/15w509+HDRXLLRJhGutnzt/vJxIERf2nmkHH8=; b=abtS26sycvkmUfP11LTXgvtYkzsUlf0L4h0IsbFbQXkFc+XMs4oUXsHH8aRdpTHzN+HeDKQcwS56k7S/iVFRgmd7E+3MipJh1Pwg/Tg8+lb7zicyYnpBeaHMZQde/SBN06Fm2v8RjuhNZTITiTlVSYSByS+aO2oG8ROygsg7sPToTy+/XAesk3LuqAtgyRVowXb9IcDEWlnnHrpOkgN+rkrOpnDsF5lRAfAVeiLxF0pffVdQmzwIfyFVPILDImxs245Cc4ux6YZL8rT39mKsiE9jKhmXnQqvre69HJwYLm4D56izTQHR2mBS6dwuMprsIbYdiAdcDpPbKHMnmAqDbA== 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=3Nbmv/15w509+HDRXLLRJhGutnzt/vJxIERf2nmkHH8=; b=iDxRkub2EKMKEh9Yn5WUPzFwBE8GEnK9PGgmE8bWBHC7K1Z29mK+MXjiELler8MqTrXAwnSn4ecjvMQcL8POeNsnzQ5kG2vxGriybtWY3UVWsi0KmKeoBNI9ANwf/H6X/f3EZKCvZ39UHCIWvR05M+DS++tBrjN94OEtEb94OJM= 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 CH2PR12MB4309.namprd12.prod.outlook.com (2603:10b6:610:a4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.17; Thu, 8 Feb 2024 01:10:17 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f%4]) with mapi id 15.20.7292.009; Thu, 8 Feb 2024 01:10:16 +0000 Message-ID: <17c02040-48e2-4a4d-84f4-9431dc5b1c1b@amd.com> Date: Thu, 8 Feb 2024 01:10:11 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6] app/testpmd: enable cli for programmable action Content-Language: en-US To: Qi Zhang , aman.deep.singh@intel.com, yuying.zhang@intel.com, orika@nvidia.com, cristian.dumitrescu@intel.com Cc: dev@dpdk.org References: <20231005100246.242970-1-qi.z.zhang@intel.com> <20231011120332.626859-1-qi.z.zhang@intel.com> 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 AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElR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kZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231011120332.626859-1-qi.z.zhang@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0019.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:151::6) To MN2PR12MB4301.namprd12.prod.outlook.com (2603:10b6:208:1d4::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH2PR12MB4309:EE_ X-MS-Office365-Filtering-Correlation-Id: fb2c09d3-1478-41f3-9e2e-08dc2842b59e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3vjkvi+WFQj66VvDYJ5t7aqI7V79xZ/jevQx/kBGl4C9iEZEu6cJlB0Bzb3NoPooSX388ZdhSA4CF+p9bO9n44S2Gj91LTPt6qMMdy9YdHBFe2CrzJpBaSegOzx5YTIHRSltJW2xoyWlCf0SYw3FJHDqHchEcANzKNdllP1ZXO/qUx99bVCtG9hxxpCwej1G/N+dUlfwaa8Klr9VccS8F9vv4uH5pk/U0N9GHPyiMJg6gMbfpPAQWa0QMBHzc7H1kLZDzvSZPp9hs4jaVfe5rvFZgdsb5fcwzdR196erWmwu6Uw1IdazrFuPUVmVzH5LKBQeZb3/abpePcOxD6wcGcx0S7PtEhKfBQ32OA+9hXzwjeGidL3dbfrRdjS2CYssdXK2Qtyi3aJaBwFJvxYmUSA9144bYyNKXu0YCrkJiqCFM6B6VWeJxOqEjYupVDdG6N1ymshv9gc53mCXAwq78Zwaomnw08l2769odV0oZiH0vywoValMKUU5HWMm1h2A7rsMEM8B/wC6ElyL4ySjKCqA4QoUunCyH6OkoAWgMjuYwAErsa1tazdCyvQcsjT6 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)(366004)(376002)(346002)(396003)(136003)(39860400002)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(66556008)(31696002)(41300700001)(6486002)(86362001)(36756003)(8676002)(316002)(8936002)(4326008)(66946007)(5660300002)(53546011)(6506007)(4744005)(66476007)(2906002)(38100700002)(478600001)(6666004)(6512007)(2616005)(44832011)(26005)(31686004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aHVZUmJEYkdpaTM4czdLMzlQWXNqQjA5cGhlNUFKdGJ3WS9XZ2x1SEpSNnRy?= =?utf-8?B?K3pyM293ejZoa3VPQjJ3QlQvWHE2ckJWNzZxRXpZQ0s5VXkwdHVJSktFeTJS?= =?utf-8?B?RnZ4emdtQjdOVUFYWDhIYlJCTkhsb2JhNTJ4Yy82YlNzaXY5Q2tNVlJmbEM1?= =?utf-8?B?RlpPSU9WWEpxeEZOdVFDcWZkdTYrMXZOWjc1MVNUUEdhODZtUjhYQ2dWRmdm?= =?utf-8?B?TnhFc1c4TWErRE5wa3RRRHd4a2RwVzFaSW5DOFNPbHpYMDJQc3oyc2R3TVp0?= =?utf-8?B?SlEzb2ljVVFHeWM2MVhvTlRERWV4cFUxTFAxdjl2Wmp3eTBFcmt6bEZkajE2?= =?utf-8?B?UFR3OHhTdGRHZ2Y0U3pSSXJJVTZYaUtIMnNGSG5yQnltVXZINGNJKzVscW5X?= =?utf-8?B?RTZTcUNTRFoxS3VMU1BiYzViNFlMdkdZaHVaSWFXUnpWTTc1ODRWUUdZVng2?= =?utf-8?B?Q0RiNHJWZzdrVkhLdTk2LzdPb3V0MlhqcXNCNW10UHpCMjIvcUZGL1g1RkVL?= =?utf-8?B?bzdWTVYzMFZCbzBtN25uQ3ZHUVZ5a1NxbCtmQzFJNDZ0T2xTcTh4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ZHdjUVBTMnA4UzhydzN5OWhyS1ZBbExJ?= =?utf-8?B?NEptVkFSTVN2NnlEeUJ3U2xQb3BIblAyRzR4ZDZZVDZkVHRObDRnSEZRVlpB?= =?utf-8?B?QTRZVGZjRis1YUp6MEhFeHl2UkhnZXg0SVlGeldCZ3g1bGRVNHdCRDUyUUVV?= =?utf-8?B?M0ZsdnExQlplQjN3dnJ3eVJyWDRnRjhCbW5SR2JUeXRzR2VGYjNDQURDN0hx?= =?utf-8?B?Nmp3R0ZRNDZ6dXJaaHk3MEZEVXRFOWcvcVprek0yMVowbzA5K21oRHBQbUZO?= =?utf-8?B?QnNJWTNpRU9xalhkTllQNmUrMTRzK0wvMlRMemhuMENLYUtQWC9RVmd5QWFO?= =?utf-8?B?dnlvMW1heFdXNG56YjhZekdRemFoZTNaT09IbEtHOHpwL2xRRXdZMWlRZ0Rj?= =?utf-8?B?RFlrWk9VQmNaczhtSHp0WXY2R2xJejRMcURUMGV6YUJ5dk5DSG5Ka0VrTzYv?= =?utf-8?B?WE00cllWWWMxTWFXbkJCSGNFajVXdVRyRytIazk4UkVVcDI5T1Rhd2dHcEdH?= =?utf-8?B?VkV4bU5kWGQvTTkxSHp2RHJUbUpMSlp4N2l2YXhpWWIwazJwOXYwUUpObWtC?= =?utf-8?B?K1FQekc4d1g3RlFtMXY3ZFRLT2FEMEZHajZ6Y3R6d3FCOXh1V0Q0SjIwNzBD?= =?utf-8?Q?txcJikYt8M4MeFh1nOHS1Ak/S?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb2c09d3-1478-41f3-9e2e-08dc2842b59e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4301.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2024 01:10:16.7254 (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: lnviE8XjY6uUrA2KPGPmqT85hjk/3DY5r8REfTzEQEKsDGs+oei/tSnde1FliCk8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4309 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 10/11/2023 1:03 PM, Qi Zhang wrote: > Parsing command line for rte_flow_action_prog. > > Syntax: > > "prog name [arguments \ > ... end]" > > Use parse_string0 to parse name string. > Use parse_hex to parse hex string. > Use struct action_prog_data to store parsed result. > > Example: > > Action with 2 arguments: > > "prog name action0 arguments field0 03FF field1 55AA end" > > Action without argument: > > "prog name action1" > > Signed-off-by: Qi Zhang > > Hi Ori, Cristian, can you please help reviewing this patch?