From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 4705E2B9C for ; Tue, 3 Jan 2017 04:14:59 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 02 Jan 2017 19:14:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,451,1477983600"; d="scan'208";a="208972941" Received: from pgsmsx107.gar.corp.intel.com ([10.221.44.105]) by fmsmga004.fm.intel.com with ESMTP; 02 Jan 2017 19:14:58 -0800 Received: from pgsmsx110.gar.corp.intel.com (10.221.44.111) by PGSMSX107.gar.corp.intel.com (10.221.44.105) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Jan 2017 11:14:57 +0800 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.52]) by PGSMSX110.gar.corp.intel.com ([10.221.44.111]) with mapi id 14.03.0248.002; Tue, 3 Jan 2017 11:14:56 +0800 From: "Zhao1, Wei" To: "Xing, Beilei" , "dev@dpdk.org" CC: "Lu, Wenzhuo" Thread-Topic: [dpdk-dev] [PATCH v2 02/18] net/ixgbe: store flow director filter Thread-Index: AQHSYnJv2IjTp9/KsU+ptm0s91k2+aEkcq6AgAGnQJA= Date: Tue, 3 Jan 2017 03:14:54 +0000 Message-ID: References: <1483084390-53159-1-git-send-email-wei.zhao1@intel.com> <1483084390-53159-3-git-send-email-wei.zhao1@intel.com> <94479800C636CB44BD422CB454846E013158CE0E@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <94479800C636CB44BD422CB454846E013158CE0E@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 02/18] net/ixgbe: 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: Tue, 03 Jan 2017 03:15:01 -0000 SGksIGJlaWxlaQ0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFhpbmcs IEJlaWxlaQ0KPiBTZW50OiBNb25kYXksIEphbnVhcnkgMiwgMjAxNyA1OjU5IFBNDQo+IFRvOiBa aGFvMSwgV2VpIDx3ZWkuemhhbzFAaW50ZWwuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiBMdSwg V2Vuemh1byA8d2Vuemh1by5sdUBpbnRlbC5jb20+OyBaaGFvMSwgV2VpDQo+IDx3ZWkuemhhbzFA aW50ZWwuY29tPg0KPiBTdWJqZWN0OiBSRTogW2RwZGstZGV2XSBbUEFUQ0ggdjIgMDIvMThdIG5l dC9peGdiZTogc3RvcmUgZmxvdyBkaXJlY3RvciBmaWx0ZXINCj4gDQo+ID4gRnJvbTogZGV2IFtt YWlsdG86ZGV2LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBXZWkgWmhhbw0KPiA+IFNl bnQ6IEZyaWRheSwgRGVjZW1iZXIgMzAsIDIwMTYgMzo1MyBQTQ0KPiA+IFRvOiBkZXZAZHBkay5v cmcNCj4gPiBDYzogTHUsIFdlbnpodW8gPHdlbnpodW8ubHVAaW50ZWwuY29tPjsgWmhhbzEsIFdl aQ0KPiA+IDx3ZWkuemhhbzFAaW50ZWwuY29tPg0KPiA+IFN1YmplY3Q6IFtkcGRrLWRldl0gW1BB VENIIHYyIDAyLzE4XSBuZXQvaXhnYmU6IHN0b3JlIGZsb3cgZGlyZWN0b3INCj4gPiBmaWx0ZXIN Cj4gPg0KPiA+IEFkZCBzdXBwb3J0IGZvciBzdG9yaW5nIGZsb3cgZGlyZWN0b3IgZmlsdGVyIGlu IFNXLg0KPiA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