From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 630EB234 for ; Tue, 19 Jul 2016 10:11:52 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 19 Jul 2016 01:11:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,388,1464678000"; d="scan'208";a="1024610137" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 19 Jul 2016 01:11:51 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 19 Jul 2016 01:11:50 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.147]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.150]) with mapi id 14.03.0248.002; Tue, 19 Jul 2016 16:11:48 +0800 From: "Lu, Wenzhuo" To: Adrien Mazarguil CC: "dev@dpdk.org" , Thomas Monjalon , "Zhang, Helin" , "Wu, Jingjing" , Rasesh Mody , Ajit Khaparde , Rahul Lakkireddy , Jan Medala , John Daley , "Chen, Jing D" , "Ananyev, Konstantin" , Matej Vido , Alejandro Lucero , Sony Chacko , Jerin Jacob , "De Lara Guarch, Pablo" , Olga Shern Thread-Topic: [RFC] Generic flow director/filtering/classification API Thread-Index: AQHR1uluLhaZlI58NEat0o4a8LsblaAMP0QAgAAA8QCAEynw4A== Date: Tue, 19 Jul 2016 08:11:48 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC090903492563@shsmsx102.ccr.corp.intel.com> References: <20160705181646.GO7621@6wind.com> <6A0DE07E22DDAD4C9103DF62FEBC09090348E1A7@shsmsx102.ccr.corp.intel.com> <20160707102650.GU7621@6wind.com> In-Reply-To: <20160707102650.GU7621@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC] Generic flow director/filtering/classification API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 08:11:53 -0000 SGkgQWRyaWVuLA0KVGhhbmtzIGZvciB5b3VyIGNsYXJpZmljYXRpb24uICBNb3N0IG9mIG15IHF1 ZXN0aW9ucyBhcmUgY2xlYXIsIGJ1dCBzdGlsbCBzb21ldGhpbmcgbWF5IG5lZWQgdG8gYmUgZGlz Y3Vzc2VkLCBjb21tZW50IGJlbG93Lg0KDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0N Cj4gRnJvbTogQWRyaWVuIE1hemFyZ3VpbCBbbWFpbHRvOmFkcmllbi5tYXphcmd1aWxANndpbmQu Y29tXQ0KPiBTZW50OiBUaHVyc2RheSwgSnVseSA3LCAyMDE2IDY6MjcgUE0NCj4gVG86IEx1LCBX ZW56aHVvDQo+IENjOiBkZXZAZHBkay5vcmc7IFRob21hcyBNb25qYWxvbjsgWmhhbmcsIEhlbGlu OyBXdSwgSmluZ2ppbmc7IFJhc2VzaCBNb2R5Ow0KPiBBaml0IEtoYXBhcmRlOyBSYWh1bCBMYWtr aXJlZGR5OyBKYW4gTWVkYWxhOyBKb2huIERhbGV5OyBDaGVuLCBKaW5nIEQ7IEFuYW55ZXYsDQo+ IEtvbnN0YW50aW47IE1hdGVqIFZpZG87IEFsZWphbmRybyBMdWNlcm87IFNvbnkgQ2hhY2tvOyBK ZXJpbiBKYWNvYjsgRGUgTGFyYQ0KPiBHdWFyY2gsIFBhYmxvOyBPbGdhIFNoZXJuDQo+IFN1Ympl Y3Q6IFJlOiBbUkZDXSBH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