From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2C6521B27D for ; Tue, 3 Oct 2017 03:24:40 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2017 18:24:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,471,1500966000"; d="scan'208";a="906067319" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by FMSMGA003.fm.intel.com with ESMTP; 02 Oct 2017 18:24:39 -0700 Received: from orsmsx162.amr.corp.intel.com (10.22.240.85) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 2 Oct 2017 18:24:39 -0700 Received: from orsmsx105.amr.corp.intel.com ([169.254.2.169]) by ORSMSX162.amr.corp.intel.com ([169.254.3.44]) with mapi id 14.03.0319.002; Mon, 2 Oct 2017 18:24:39 -0700 From: "Wang, Yipeng1" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "Tai, Charlie" , "Gobriel, Sameh" , "Mcnamara, John" Thread-Topic: [PATCH v4 3/7] member: implement vBF mode Thread-Index: AQHTN7hMjItxFNOFoka/9hPLdbl3XqLQQO2ggAEbYuA= Date: Tue, 3 Oct 2017 01:24:38 +0000 Message-ID: References: <1504655989-1518-1-git-send-email-yipeng1.wang@intel.com> <1506534034-39433-1-git-send-email-yipeng1.wang@intel.com> <1506534034-39433-4-git-send-email-yipeng1.wang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjk1OWZhY2EtMjI3Ny00NDhkLTg5MWMtMTkxYTI2Y2VjNGRhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImNNaThRT3lpT2Zic0M5WVMxK0U0SFh4UXd6c05nXC82MTA4SDVZd1JPR1o0PSJ9 x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 3/7] member: implement vBF mode 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 Oct 2017 01:24:41 -0000 UGxlYXNlIHNlZSBvbmUgY29tbWVudCBpbmxpbmVkOg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2Fn ZS0tLS0tDQo+IEZyb206IERlIExhcmEgR3VhcmNoLCBQYWJsbw0KPiBTZW50OiBNb25kYXksIE9j dG9iZXIgMiwgMjAxNyA4OjQ0IEFNDQo+IFRvOiBXYW5nLCBZaXBlbmcxIDx5aXBlbmcxLndhbmdA aW50ZWwuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiB0aG9tYXNAbW9uamFsb24ubmV0OyBUYWks IENoYXJsaWUgPGNoYXJsaWUudGFpQGludGVsLmNvbT47IEdvYnJpZWwsDQo+IFNhbWVoIDxzYW1l aC5nb2JyaWVsQGludGVsLmNvbT47IE1jbmFtYXJhLCBKb2huDQo+IDxqb2huLm1jbmFtYXJhQGlu dGVsLmNvbT4NCj4gU3ViamVjdD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