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 B3F47A0096 for ; Tue, 9 Apr 2019 09:40:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97A01532C; Tue, 9 Apr 2019 09:40:22 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8193F532C; Tue, 9 Apr 2019 09:40:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2019 00:40:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,328,1549958400"; d="scan'208";a="129788016" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by orsmga007.jf.intel.com with ESMTP; 09 Apr 2019 00:40:18 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.111]) by PGSMSX105.gar.corp.intel.com ([169.254.4.8]) with mapi id 14.03.0415.000; Tue, 9 Apr 2019 15:40:17 +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+gAgBxU/WCAAADZMA== Date: Tue, 9 Apr 2019 07:40:14 +0000 Message-ID: References: <1552896961-33681-1-git-send-email-wei.zhao1@intel.com> <1553224548-37749-1-git-send-email-wei.zhao1@intel.com> 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-stable] [PATCH v3] app/testpmd: fix support of hex string parser for flow API X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" SGksICBGZXJydWgNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBaaGFv MSwgV2VpDQo+IFNlbnQ6IFR1ZXNkYXksIEFwcmlsIDksIDIwMTkgMzozOCBQTQ0KPiBUbzogWWln aXQsIEZlcnJ1aCA8ZmVycnVoLnlpZ2l0QGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzog c3RhYmxlQGRwZGsub3JnOyBzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZzsgQW5hbnlldiwgS29u c3RhbnRpbg0KPiA8a29uc3RhbnRpbi5hbmFueWV2QGludGVsLmNvbT4NCj4gU3ViamVjdDogUkU6 IFtkcGRrLXN0YWJsZV0gW1BBVENIIHYzXSBhcHAvdGVzdHBtZDogZml4IHN1cHBvcnQgb2YgaGV4 IHN0cmluZw0KPiBwYXJzZXIgZm9yIGZsb3cgQVBJDQo+IA0KPiBIaSwgIEZlcnJ1aA0KPiANCj4g PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+IEZyb206IFlpZ2l0LCBGZXJydWgNCj4g PiBTZW50OiBGcmlkYXksIE1hcmNoIDIyLCAyMDE5IDEwOjU2IFBNDQo+ID4gVG86IFpoYW8xLCBX ZWkgPHdlaS56aGFvMUBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmcNCj4gPiBDYzogc3RhYmxlQGRw ZGsub3JnOyBzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZzsgQW5hbnlldiwgS29uc3Rhb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