From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2B57BA0096 for ; Tue, 9 Apr 2019 09:42:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 82E8C54AE; Tue, 9 Apr 2019 09:42:55 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4EC434F9B; Tue, 9 Apr 2019 09:42:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2019 00:42:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,328,1549958400"; d="scan'208";a="138717848" Received: from pgsmsx114.gar.corp.intel.com ([10.108.55.203]) by fmsmga008.fm.intel.com with ESMTP; 09 Apr 2019 00:42:50 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.111]) by pgsmsx114.gar.corp.intel.com ([169.254.4.194]) with mapi id 14.03.0415.000; Tue, 9 Apr 2019 15:42:49 +0800 From: "Zhao1, Wei" To: "Yigit, Ferruh" , "dev@dpdk.org" CC: "stable@dpdk.org" , "stephen@networkplumber.org" , "Ananyev, Konstantin" Thread-Topic: [dpdk-stable] [PATCH v3] app/testpmd: fix support of hex string parser for flow API Thread-Index: AQHU4GFyXPe53M0yN0G4YLqSpzGFL6YXN+gAgBxWz4A= Date: Tue, 9 Apr 2019 07:42:49 +0000 Message-ID: References: <1552896961-33681-1-git-send-email-wei.zhao1@intel.com> <1553224548-37749-1-git-send-email-wei.zhao1@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3] app/testpmd: fix support of hex string parser for flow API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190409074249.v-qMwSvG5MOgPCZxwKbz7PSBlgaeQdDBWIxAMEuX0aM@z> SGksIEZlcnJ1aA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFlpZ2l0 LCBGZXJydWgNCj4gU2VudDogRnJpZGF5LCBNYXJjaCAyMiwgMjAxOSAxMDo1NiBQTQ0KPiBUbzog WmhhbzEsIFdlaSA8d2VpLnpoYW8xQGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzogc3Rh YmxlQGRwZGsub3JnOyBzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZzsgQW5hbnlldiwgS29uc3Rh bnRpbg0KPiA8a29uc3RhbnRpbi5hbmFueWV2QGludGVsLmNvbT4NCj4gU3ViamVjdDogUmU6IFtk cGRrLXN0YWJsZV0gW1BBVENIIHYzXSBhcHAvdGVzdHBtZDogZml4IHN1cHBvcnQgb2YgaGV4IHN0 cmluZw0KPiBwYXJzZXIgZm9yIGZsb3cgQVBJDQo+IA0KPiBPbiAzLzIyLzIwMTkgMzoxNSBBTSwg V2VpIFpoYW8gd3JvdGU6DQo+ID4gVGhlcmUgaXMgbmVlZCBmb3IgdXNlcnMgdG8gc2V0IGNvbmZp Z3VyYXRpb24gb2YgSEVYIG51bWJlciBmb3IgUlNTDQo+ID4ga2V5LiBUaGUga2V5IGJ5dGUgc2hv dWxkIGJlIHBhc3MgZG93biBhcyBoZXggbnVtYmVyIG5vdCBhcyBjaGFyDQo+ID4gc3R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