From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 85D83593E for ; Fri, 17 Oct 2014 00:24:07 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 16 Oct 2014 15:21:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="401512727" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 16 Oct 2014 15:24:42 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 16 Oct 2014 15:32:00 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 16 Oct 2014 15:32:00 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.230]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.172]) with mapi id 14.03.0195.001; Fri, 17 Oct 2014 06:31:59 +0800 From: "Wu, Jingjing" To: Thomas Monjalon Thread-Topic: [dpdk-dev] filter_ctl PMD API idea Thread-Index: Ac/INhaSpJt9Z/JcRpWbBUHpSmDTBgA4OCjwCABPOwAAHeb9IA== Date: Thu, 16 Oct 2014 22:31:58 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F8B0E899@SHSMSX104.ccr.corp.intel.com> References: <9BB6961774997848B5B42BEC655768F8ADE579@SHSMSX104.ccr.corp.intel.com> <9BB6961774997848B5B42BEC655768F8ADFFBD@SHSMSX104.ccr.corp.intel.com> <5217868.ALJSpaWAWD@xps13> In-Reply-To: <5217868.ALJSpaWAWD@xps13> 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 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] filter_ctl PMD API idea 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: Thu, 16 Oct 2014 22:24:08 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogVGhvbWFzIE1vbmphbG9u IFttYWlsdG86dGhvbWFzLm1vbmphbG9uQDZ3aW5kLmNvbV0NCj4gU2VudDogRnJpZGF5LCBPY3Rv YmVyIDE3LCAyMDE0IDEyOjA3IEFNDQo+IFRvOiBXdSwgSmluZ2ppbmcNCj4gQ2M6IGRldkBkcGRr Lm9yZw0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBmaWx0ZXJfY3RsIFBNRCBBUEkgaWRlYQ0K PiANCj4gMjAxNC0wOS0wOCAxNTowNiwgV3UsIEppbmdqaW5nOg0KPiA+IEFueSBjb21tZW50cyBv ciBhZHZpc2VzPw0KPiA+DQo+ID4gVGhhbmtzIQ0KPiA+DQo+ID4gRm9ydHZpbGxlIEZpbHRlciBm ZWF0dXJlcycgZGV2ZWxvcG1lbnQgd2lsbCBiZSBzdGFydGVkIGJhc2VkIG9uIHRoaXMgZGVzaWdu IHRoaXMgd2Vlay4NCj4gDQo+IFRoYW5rcyBKaW5namluZyBmb3IgZXhwbGFpbmluZyB5b3VyIHBs YW4gYmVmb3JlIHdvcmtpbmcgb24gaXQuDQo+IFRoZXJlIHdlcmUgbm8gY29tbWVudCBmb3IgMSBt b250aCBzbyB3ZSdsbCBhc3N1bWUgZXZlcnlib2R5IGlzIE9LLg0KPiBOb3cgeW91ciB3b3JrIGlz IGRvbmUgYW5kIGl0J3MgdGltZSB0byBpbnRlZ3JhdGUgaXQuDQo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