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 9F7868DAA for ; Tue, 3 Nov 2015 22:55:40 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 03 Nov 2015 13:55:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,240,1444719600"; d="scan'208";a="826152586" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga001.fm.intel.com with ESMTP; 03 Nov 2015 13:55:39 -0800 Received: from orsmsx111.amr.corp.intel.com (10.22.240.12) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Nov 2015 13:55:38 -0800 Received: from orsmsx102.amr.corp.intel.com ([169.254.1.29]) by ORSMSX111.amr.corp.intel.com ([169.254.11.249]) with mapi id 14.03.0248.002; Tue, 3 Nov 2015 13:55:31 -0800 From: "Polehn, Mike A" To: "Wiles, Keith" , "Van Haaren, Harry" , ??? , "dev@dpdk.org" Thread-Topic: [dpdk-dev] How can I calculate/estimate pps(packet per seocond) and bps(bit per second) in DPDK pktg Thread-Index: AQHRFkHdCuQM0QZy2EKzF1syTemjGZ6K4gaAgAAAqoD//4rAUIAAwA2A//+ds/A= Date: Tue, 3 Nov 2015 21:55:29 +0000 Message-ID: <745DB4B8861F8E4B9849C970520ABBF149750A1C@ORSMSX102.amr.corp.intel.com> References: <514E811C-1D85-4BB7-AA9C-C5D2B2ED6043@intel.com> <6AB36C96-4EC9-4256-A3C0-26EA20851D7A@intel.com> <745DB4B8861F8E4B9849C970520ABBF1497507C6@ORSMSX102.amr.corp.intel.com> <690C215D-DB42-4523-912D-436115E0E7DE@intel.com> In-Reply-To: <690C215D-DB42-4523-912D-436115E0E7DE@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsIiwiaWQiOiIzMTk0ZDE4My05ZmI2LTQ3M2QtYTgxOC1jMWNiMmQ3MThhMDUiLCJwcm9wcyI6W3sibiI6IkludGVsRGF0YUNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJDVFBfUFVCTElDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib3JHQnZ0aGFadklKOEZ1YkRwenZPUnBGWWtLT2l6WmJnNFpFWkNoMVBMND0ifQ== x-inteldataclassification: CTP_PUBLIC x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] How can I calculate/estimate pps(packet per seocond) and bps(bit per second) in DPDK pktg 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: Tue, 03 Nov 2015 21:55:41 -0000 QWNjZXNzaW5nIHJlZ2lzdGVycyBvbiB0aGUgTklDIGhhcyB2ZXJ5IGhpZ2ggYWNjZXNzIGxhdGVu Y3kgYW5kIHdpbGwgb2Z0ZW4gc3RhbGwgdGhlIENQVSBpbiB3YWl0aW5nIGZvciByZXNwb25zZSAN CmVzcGVjaWFsbHkgd2l0aCBtdWx0aXBsZSByZWdpc3RlciByZWFkcyBhbmQgaGlnaCB0aHJvdWdo cHV0IHBhY2tldCBkYXRhIGFsc28gYmVpbmcgdHJhbnNmZXJyZWQuIFRoZSBzaXplIHZhbHVlIHdh cyANCmRlcml2ZWQgZnJvbSB0aGUgTklDIHdyaXRpbmcgYSB2YWx1ZSB0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