From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id AFE1F58E1 for ; Thu, 4 Sep 2014 14:00:45 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 04 Sep 2014 04:58:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,465,1406617200"; d="scan'208";a="597861793" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 04 Sep 2014 05:04:59 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 4 Sep 2014 05:04:58 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.17]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.147]) with mapi id 14.03.0195.001; Thu, 4 Sep 2014 20:04:56 +0800 From: "Wu, Jingjing" To: "dev@dpdk.org" Thread-Topic: filter_ctl PMD API idea Thread-Index: Ac/INhaSpJt9Z/JcRpWbBUHpSmDTBg== Date: Thu, 4 Sep 2014 12:04:55 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F8ADE579@SHSMSX104.ccr.corp.intel.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: [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, 04 Sep 2014 12:00:46 -0000 SGksIGFsbA0KDQpXaGVuIHdlIGRldmVsb3AgZmlsdGVycyBmZWF0dXJlIGluIGk0MGU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