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 43B51A05D3 for ; Mon, 25 Mar 2019 04:39:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 06A8C11A4; Mon, 25 Mar 2019 04:39:09 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 91C4B11A4; Mon, 25 Mar 2019 04:39:06 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2019 20:39:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="134428412" Received: from kmsmsx155.gar.corp.intel.com ([172.21.73.106]) by fmsmga008.fm.intel.com with ESMTP; 24 Mar 2019 20:39:04 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.210]) by KMSMSX155.gar.corp.intel.com ([169.254.15.89]) with mapi id 14.03.0415.000; Mon, 25 Mar 2019 11:39:03 +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+gAgAR/amA= Date: Mon, 25 Mar 2019 03:39:02 +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.400.15 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" SGksIA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFlpZ2l0LCBGZXJy dWgNCj4gU2VudDogRnJpZGF5LCBNYXJjaCAyMiwgMjAxOSAxMDo1NiBQTQ0KPiBUbzogWmhhbzEs IFdlaSA8d2VpLnpoYW8xQGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzogc3RhYmxlQGRw ZGsub3JnOyBzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZzsgQW5hbnlldiwgS29uc3RhbnRpbg0K PiA8a29uc3RhbnRpbi5hbmFueWV2QGludGVsLmNvbT4NCj4gU3ViamVjdDogUmU6IFtkcGRrLXN0 YWJsZV0gW1BBVENIIHYzXSBhcHAvdGVzdHBtZDogZml4IHN1cHBvcnQgb2YgaGV4IHN0cmluZw0K PiBwYXJzZXIgZm9yIGZsb3cgQVBJDQo+IA0KPiBPbiAzLzIyLzIwMTkgMzoxNSBBTSwgV2VpIFpo YW8gd3JvdGU6DQo+ID4gVGhlcmUgaXMgbmVlZCBmb3IgdXNlcnMgdG8gc2V0IGNvbmZpZ3VyYXRp b24gb2YgSEVYIG51bWJlciBmb3IgUlNTDQo+ID4ga2V5LiBUaGUga2V5IGJ5dGUgc2hvdWxkIGJl IHBhc3MgZG93biBhcyBoZXggbnVtYmVyIG5vdCBhcyBjaGFyDQo+ID4gc3RyaW5nLiBUaGlzIHBh dGNoIGVuYWJsZSBjbWRsaW5lIGZsb3cgcGFyc2UgSEVYIG51bWJlciwgaW4gb3JkZX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