From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Xueming(Steven) Li" Subject: Re: [PATCH v2 2/3] app/testpmd: support metadata as flow rule criteria Date: Tue, 18 Sep 2018 08:21:32 +0000 Message-ID: References: <1537104835-9034-1-git-send-email-dekelp@mellanox.com> <1537108670-11380-3-git-send-email-dekelp@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: Shahaf Shuler , Ori Kam To: Dekel Peled , "wenzhuo.lu@intel.com" , "jingjing.wu@intel.com" , "bernard.iremonger@intel.com" , "dev@dpdk.org" , "olivier.matz@6wind.com" , Adrien Mazarguil , Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0048.outbound.protection.outlook.com [104.47.0.48]) by dpdk.org (Postfix) with ESMTP id 05F841559 for ; Tue, 18 Sep 2018 10:21:34 +0200 (CEST) In-Reply-To: <1537108670-11380-3-git-send-email-dekelp@mellanox.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IDxkZXYtYm91bmNl c0BkcGRrLm9yZz4gT24gQmVoYWxmIE9mIERla2VsIFBlbGVkDQo+IFNlbnQ6IFN1bmRheSwgU2Vw dGVtYmVyIDE2LCAyMDE4IDEwOjM4IFBNDQo+IFRvOiB3ZW56aHVvLmx1QGludGVsLmNvbTsgamlu Z2ppbmcud3VAaW50ZWwuY29tOyBiZXJuYXJkLmlyZW1vbmdlckBpbnRlbC5jb207IGRldkBkcGRr Lm9yZzsNCj4gb2xpdmllci5tYXR6QDZ3aW5kLmNvbTsgQWRyaWVuIE1hemFyZ3VpbCA8YWRyaWVu Lm1hemFyZ3VpbEA2d2luZC5jb20+OyBU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