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 2054EB5C8 for ; Mon, 16 Feb 2015 12:34:42 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 16 Feb 2015 03:30:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,587,1418112000"; d="scan'208";a="666992428" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga001.fm.intel.com with ESMTP; 16 Feb 2015 03:34:36 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.218]) by IRSMSX154.ger.corp.intel.com ([169.254.12.237]) with mapi id 14.03.0195.001; Mon, 16 Feb 2015 11:34:36 +0000 From: "Dumitrescu, Cristian" To: Aws Ismail , "dev@dpdk.org" Thread-Topic: [dpdk-dev] Explanation of the QoS offset values used in the QoS scheduler example app. Thread-Index: AQHQSI1NgHVndcAt/keJZ4eT44UVHJzzJQ/w Date: Mon, 16 Feb 2015 11:34:35 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D8912632315B1F@IRSMSX108.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Subject: Re: [dpdk-dev] Explanation of the QoS offset values used in the QoS scheduler example app. 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: Mon, 16 Feb 2015 11:34:44 -0000 SGksDQoNClRoZXNlIGFyZSBieXRlIG9mZnNldHMgdXNlZCBmb3IgcmVhZGluZyB0aGVzZSBwYWNr ZXQgZmllbGRzLCBjb25zaWRlcmluZyB0aGF0IHBh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