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 88CCEA0096 for ; Tue, 9 Apr 2019 09:38:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 47F4E532C; Tue, 9 Apr 2019 09:38:35 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CF254532C; Tue, 9 Apr 2019 09:38:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2019 00:38:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,328,1549958400"; d="scan'208";a="147700299" Received: from pgsmsx108.gar.corp.intel.com ([10.221.44.103]) by FMSMGA003.fm.intel.com with ESMTP; 09 Apr 2019 00:38:30 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.111]) by PGSMSX108.gar.corp.intel.com ([169.254.8.246]) with mapi id 14.03.0415.000; Tue, 9 Apr 2019 15:38:29 +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/WA= Date: Tue, 9 Apr 2019 07:38:28 +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-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" SGksICBGZXJydWgNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBZaWdp dCwgRmVycnVoDQo+IFNlbnQ6IEZyaWRheSwgTWFyY2ggMjIsIDIwMTkgMTA6NTYgUE0NCj4gVG86 IFpoYW8xLCBXZWkgPHdlaS56aGFvMUBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmcNCj4gQ2M6IHN0 YWJsZUBkcGRrLm9yZzsgc3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc7IEFuYW55ZXYsIEtvbnN0 YW50aW4NCj4gPGtvbnN0YW50aW4uYW5hbnlldkBpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJlOiBb ZHBkay1zdGFibGVdIFtQQVRDSCB2M10gYXBwL3Rlc3RwbWQ6IGZpeCBzdXBwb3J0IG9mIGhleCBz dHJpbmcNCj4gcGFyc2VyIGZvciBmbG93IEFQSQ0KPiANCj4gT24gMy8yMi8yMDE5IDM6MTUgQU0s IFdlaSBaaGFvIHdyb3RlOg0KPiA+IFRoZXJlIGlzIG5lZWQgZm9yIHVzZXJzIHRvIHNldCBjb25m aWd1cmF0aW9uIG9mIEhFWCBudW1iZXIgZm9yIFJTUw0KPiA+IGtleS4gVGhlIGtleSBieXRlIHNo b3VsZCBiZSBwYXNzIGRvd24gYXMgaGV4IG51bWJlciBub3QgYXMgY2hhcg0KPiA+IHN0cmluZy4g VGhpcyBwYXRjaCBlbmFibGUgY21kbGluZSBmbG93IHBhcnNlIEhFWCBudW1iZXIsI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