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 78AA5426E6; Sun, 8 Oct 2023 02:06:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B75040263; Sun, 8 Oct 2023 02:06:06 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 03C854021F for ; Sun, 8 Oct 2023 02:06:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696723565; x=1728259565; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=JuKLo57VL/YDmaf1mv1IECQhSPijEFFZPwIDByeKCVM=; b=TJcaouaDkR5qEQgL9iGg8yUZLVY7UFWIEPDRKVWOeEEJi1kOyZHL/P0j Id3sk4D2Rr92iLZUu564gplPVWCa62nWvnJSB7B40/wy8K/5Y8KP+mFNv FTVe2cWRY96eo25sUKkv6lYySqP0PpGYxKzX7pC3fEsGupWs4Z+wsf8I1 zoPQxnFCau3sw0O5InwHboiqkyTudhuYcOEkgWMMDLc5HbQ9NpdT+IfaU 1gcLV8HdeyDCrqGNH5fiyXTflicOdqBjLPvmSHOQ3N5RgjwQx3i7T4qFR P3y5HC5kSY7Hd6lAEEG1BASpzBjQ053ETRSQcq1zTS1BczDcUr5ScAkyP Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10856"; a="364255651" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="364255651" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2023 17:06:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10856"; a="787787849" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="787787849" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 07 Oct 2023 17:06:03 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sat, 7 Oct 2023 17:06:03 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Sat, 7 Oct 2023 17:06:03 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Sat, 7 Oct 2023 17:06:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dCVpUZ4JIBrC8uLEmerhA5c3OpK23ZSSU6Le88GSXYz11FWqhL9hCe2WhDTPPzEwxs3HPA6QDsXSer/z8Vm11aWUimlAllx8IzuoIqr4PfY9YQSncnx6KdghI09bJSRRMjgLvPuhXde4CGqkfMGh17askdTuBExrbA5FRm7LM+BmnvSCOrHQokkcfPDqJ3/wprfSkf0w6yVX7QJ82zrU+j4qfqtUXZBhU7ttpyc9JhVofQVoNCdP89tuVqupVx6ptzXRARxg5njNFZXtDkndHXHhlsCwvxVt3wlP6m1robgXxLD/buBDOABEKqfc5fsj6NMfx5DNYrDgxkzlvWrfNg== 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=SXuz8EanJI0mp3JCiX1Y6pVe4yT1yJ6CU8xufiZOoLM=; b=iS9ap05wVcxaJTpCSm7UwObU8y+xlSXCgdwKI+aXonvU/+XFuIEOq2GM6c9ag5HZ3LpWGT5Bu1cYTMdTGYqk8Myj15GNLcwvijXkXo6LdyGhtvZyR6958+w6IHyF1ouE7zlsphYvx2gRRhxdq3vM6xadmISIcV7p2T2WJ7I7cWZw6N5/NFROHD2DR/cKbeDaWqqECIk5GaA7neWD8DI5ySlwGCsDj2WS/XuTwwBE3GDHRY3I7sIvVGVqYIFJo7kIuogdhtckZ3ANUmhd+Zrg3mP9JCU922PL0A1efWWPMzj5CsqcjpQFz1YKQa55ioy2AE0BVTHTT/6XCbh4JfSpxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DS0PR11MB7442.namprd11.prod.outlook.com (2603:10b6:8:14d::22) by BN9PR11MB5404.namprd11.prod.outlook.com (2603:10b6:408:11d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.43; Sun, 8 Oct 2023 00:06:01 +0000 Received: from DS0PR11MB7442.namprd11.prod.outlook.com ([fe80::d480:4435:2089:dd78]) by DS0PR11MB7442.namprd11.prod.outlook.com ([fe80::d480:4435:2089:dd78%4]) with mapi id 15.20.6863.032; Sun, 8 Oct 2023 00:06:00 +0000 From: "Dumitrescu, Cristian" To: "Zhang, Qi Z" , "Singh, Aman Deep" , "Zhang, Yuying" CC: "dev@dpdk.org" , "orika@nvidia.com" , "ferruh.yigit@amd.com" Subject: RE: [PATCH v4] app/testpmd: enable cli for programmable action Thread-Topic: [PATCH v4] app/testpmd: enable cli for programmable action Thread-Index: AQHZ+MXNDetrzqPWwEGufrR56U0wVbA/BJOA Date: Sun, 8 Oct 2023 00:06:00 +0000 Message-ID: References: <20231005100246.242970-1-qi.z.zhang@intel.com> <20231007104730.441719-1-qi.z.zhang@intel.com> In-Reply-To: <20231007104730.441719-1-qi.z.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS0PR11MB7442:EE_|BN9PR11MB5404:EE_ x-ms-office365-filtering-correlation-id: b079777d-9879-4fb7-0335-08dbc7925a9c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Q7IaXpLPrxT0oKpS7HH9Xpc2fuYDwpT0z4XauIlTsVlTiiJTxrJrvDUIxneBCXU7r3uBeDqLKk4AKODkxmaj66vHjVYtBM/vtRJiYl+/07m8RtxSGBcW5tEfQFRFxBtm4Tk672ipEF0WDoqLcEVpVaBOVfY7kM1P/y+Ksr2snQ+brbvngc1ZWLc56bWSL5yVwIPtorNfiSS4dmwRzyBj5HJp0rFi95pu3I0YfjDsbXxMAOTanlC3XSDy31VvLJn0eHDMQ19Admjx8E/5aMgOEiK6aX49wIpgf9hghv2WhJBgPt+APQPU46wWsnytDYHIsCnJ/Eusv5nAhqiTRHH0fRsadQnHzLyprkMxw2W1nyEkCEfCmuhsVxwo4SWBIxZP0l6C7nRC6WXLOhwAuUbM/Y/8bOoEQINcDGSc03tuqLOSJOGTsTAGsmxbNtBatCQIVJ/msX4WJck3jKdBlStIKwTiLwiKLTSSLibAdXJ67YElCCZ3ER5xMMfu2jow/k2qldA8ZvpzsIFgR320/YClm1TzEDyP93Smtnqq5lQxTc6PQoDe72NA3PeQeB3V02RIfHELD7P/5cGP7TpczHRQisx1y4N2PCP6N+cfu2whn1UnNYQYYduyxCzFQw+/wRxt x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7442.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(136003)(39860400002)(366004)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(122000001)(38100700002)(38070700005)(82960400001)(86362001)(33656002)(55016003)(2906002)(9686003)(478600001)(4744005)(41300700001)(52536014)(8936002)(5660300002)(4326008)(8676002)(53546011)(71200400001)(7696005)(6506007)(83380400001)(66556008)(66476007)(66946007)(64756008)(110136005)(76116006)(54906003)(66446008)(316002)(6636002)(26005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?3pcgqL8J2yDFaVNH4UFKxnztHPKG7po4wTZljV0lkNO6PRziadCGR9TnF9JF?= =?us-ascii?Q?ZxIGa84tfOaLlCTywDC209ZsSiRZpHCWRpngRBA1jo0kfSRmcOVJKmw4tD5x?= =?us-ascii?Q?wCdnfwQEYrnxI55/hQdUqWSc95A8JkRre+tsBOXjAN6OzoMRzJgiLm17g8i9?= =?us-ascii?Q?VjX5ba8wVx/TXeZZbRKDYfDw1W9UqYqRweP6S4iIu2/1tDFnUnima4qiEZGj?= =?us-ascii?Q?aZvGzr80a8j7CXoZYz77lqS5f4c4xPYoTDwfMprkhT9ZRxqmnf3Kkpog3VJp?= =?us-ascii?Q?HJqkXsZayb1tg8GZYO2DZdqsg5adCzOk934OnL8FlzGFXvjWsZLxmXDkBmTw?= =?us-ascii?Q?BDSAPFqDA6/y0u6sC0vNOATlcCUef20I5MUFiCC3LmMoKuvhfTgCvKOmEZuy?= =?us-ascii?Q?q2ttilEMiG0OXk9OSvrtr4NJd3YZWtSMaIXL+KN6b8cFUcuSZLSsPFiIxg7j?= =?us-ascii?Q?N43fXFDZGVNSa8qs0vee/1oX1kd5xh6vQJiRI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us-ascii?Q?XuLT75R17d91gmQcMe4ZnPIX8ROtYMkDtrMoUFtna5ICMWYyoWWjlratKdjH?= =?us-ascii?Q?cYg1sgMpsBMy8/bgcxh6Kt/9PklATi0bJRvGCDV1rL80CBYjjqHc0BDFhZUH?= =?us-ascii?Q?QV0p0ZcmxnJ2sXFb1rx27QMAIvua6uQUDGgPKEOKCb8sAzOta2QOUAHcAXk+?= =?us-ascii?Q?qAFamupO394zwVwShBrtGRQUoKP16Pe0O0sCiZjD8UxSwi4ubObBlidl9035?= =?us-ascii?Q?eg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7442.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b079777d-9879-4fb7-0335-08dbc7925a9c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2023 00:06:00.1771 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YilRx2ZapqBmCQTCvZLf4JM7rR8hZM3fREdP99QZqL8NoYYWKC4C6/QnnL/zU2dPzaSJWN8CrNensVa0ldfHrO1l+x7qiBeDtm+/8Vhpays= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5404 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Zhang, Qi Z > Sent: Saturday, October 7, 2023 11:48 AM > To: Singh, Aman Deep ; Zhang, Yuying > > Cc: dev@dpdk.org; Dumitrescu, Cristian ; > orika@nvidia.com; ferruh.yigit@amd.com; Zhang, Qi Z > Subject: [PATCH v4] app/testpmd: enable cli for programmable action >=20 > Parsing command line for rte_flow_action_prog. >=20 > Syntax: >=20 > "prog name [arguments \ > ... end]" >=20 > Use parse_string0 to parse name string. > Use parse_hex to parse hex string. > Use struct action_prog_data to store parsed result. >=20 > Example: >=20 > Action with 2 arguments: >=20 > "prog name action0 arguments field0 03FF field1 55AA end" >=20 > Action without argument: >=20 > "prog name action1" >=20 > Signed-off-by: Qi Zhang > --- >=20 > v4: > - be more generous on the max size of name and value. Acked-by: Cristian Dumitrescu