From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id CCE472C4F for ; Wed, 28 Dec 2016 08:10:43 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP; 27 Dec 2016 23:10:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,421,1477983600"; d="scan'208";a="47100806" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga005.jf.intel.com with ESMTP; 27 Dec 2016 23:10:42 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 27 Dec 2016 23:10:42 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 27 Dec 2016 23:10:42 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0248.002; Wed, 28 Dec 2016 15:10:40 +0800 From: "Xing, Beilei" To: "Bie, Tiwei" CC: "Wu, Jingjing" , "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 03/17] net/i40e: store flow director filter Thread-Index: AQHSYApNo+CRfVl2DkSb79OYneIrrqEcMZoAgAC+XiA= Date: Wed, 28 Dec 2016 07:10:39 +0000 Message-ID: <94479800C636CB44BD422CB454846E013158BFAF@SHSMSX101.ccr.corp.intel.com> References: <1480679625-4157-1-git-send-email-beilei.xing@intel.com> <1482819984-14120-1-git-send-email-beilei.xing@intel.com> <1482819984-14120-4-git-send-email-beilei.xing@intel.com> <20161228033847.GB13841@dpdk19> In-Reply-To: <20161228033847.GB13841@dpdk19> 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] [PATCH v2 03/17] net/i40e: store flow director filter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2016 07:10:44 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQmllLCBUaXdlaQ0KPiBT ZW50OiBXZWRuZXNkYXksIERlY2VtYmVyIDI4LCAyMDE2IDExOjM5IEFNDQo+IFRvOiBYaW5nLCBC ZWlsZWkgPGJlaWxlaS54aW5nQGludGVsLmNvbT4NCj4gQ2M6IFd1LCBKaW5namluZyA8amluZ2pp bmcud3VAaW50ZWwuY29tPjsgWmhhbmcsIEhlbGluDQo+IDxoZWxpbi56aGFuZ0BpbnRlbC5jb20+ OyBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1BBVENIIHYyIDAzLzE3 XSBuZXQvaTQwZTogc3RvcmUgZmxvdyBkaXJlY3RvciBmaWx0ZXINCj4gDQo+IE9uIFR1ZSwgRGVj IDI3LCAyMDE2IGF0IDAyOjI2OjEwUE0gKzA4MDAsIEJlaWxlaSBYaW5nIHdyb3RlOg0KPiA+IEN1 cnJlbnRseSB0aGVyZSdzIG5vIGZsb3cgZGlyZWN0b3IgZmlsdGVyIHN0b3JlZCBpbiBTVy4gVGhp cyBwYXRjaA0KPiA+IHN0b3JlcyBmbG93IGRpcmVjdG9yIGZpbHRlcnMgaW4gU1cgd2l0aCBjdWNr b28gaGFzaCwgYWxzbyBhZGRzDQo+ID4gcHJvdGVjdGlvbiBpZiBhIGZsb3cgZGlyZWN0b3IgZmls dGVyIGhhcyBiZWVuIGFkZGVkLg0K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