From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <mike.a.polehn@intel.com>
Received: from mga01.intel.com (mga01.intel.com [192.55.52.88])
 by dpdk.org (Postfix) with ESMTP id 7F1148E91
 for <dev@dpdk.org>; Wed,  4 Nov 2015 15:21:57 +0100 (CET)
Received: from orsmga001.jf.intel.com ([10.7.209.18])
 by fmsmga101.fm.intel.com with ESMTP; 04 Nov 2015 06:21:56 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.20,243,1444719600"; 
 d="scan'208,217";a="811592360"
Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131])
 by orsmga001.jf.intel.com with ESMTP; 04 Nov 2015 06:21:56 -0800
Received: from orsmsx161.amr.corp.intel.com (10.22.240.84) by
 ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS)
 id 14.3.248.2; Wed, 4 Nov 2015 06:21:55 -0800
Received: from orsmsx102.amr.corp.intel.com ([169.254.1.249]) by
 ORSMSX161.amr.corp.intel.com ([169.254.4.126]) with mapi id 14.03.0248.002;
 Wed, 4 Nov 2015 06:21:55 -0800
From: "Polehn, Mike A" <mike.a.polehn@intel.com>
To: ??? <pnk003@naver.com>, "Wiles, Keith" <keith.wiles@intel.com>, "Van
 Haaren, Harry" <harry.van.haaren@intel.com>, "dev@dpdk.org" <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//4rAUIABMQ+AgABJ8OA=
Date: Wed, 4 Nov 2015 14:21:54 +0000
Message-ID: <745DB4B8861F8E4B9849C970520ABBF149750F5C@ORSMSX102.amr.corp.intel.com>
References: <c730b82a7e135bd8a1bb98bf514b338@cweb15.nm.nhnsystem.com>
 <514E811C-1D85-4BB7-AA9C-C5D2B2ED6043@intel.com>
 <E923DB57A917B54B9182A2E928D00FA61282AF06@IRSMSX102.ger.corp.intel.com>
 <6AB36C96-4EC9-4256-A3C0-26EA20851D7A@intel.com>
 <745DB4B8861F8E4B9849C970520ABBF1497507C6@ORSMSX102.amr.corp.intel.com>
 <6668b8405a3e2340ad573f7a236de1d5@cweb05.nm.nhnsystem.com>
In-Reply-To: <6668b8405a3e2340ad573f7a236de1d5@cweb05.nm.nhnsystem.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsIiwiaWQiOiIwZDhjMzI3Yy0yMjUyLTQzYzUtOGUwMC00YTcwODU4Yjk4NDciLCJwcm9wcyI6W3sibiI6IkludGVsRGF0YUNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJDVFBfSUMifV19XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTUuNC4xMC4xOSIsIlRydXN0ZWRMYWJlbEhhc2giOiJGdzlLVjc3N1BoOWVVZjd4MW44dzhYSGpLa251azRzUXlwTndVVlY1ZkxzPSJ9
x-inteldataclassification: CTP_IC
x-originating-ip: [10.22.254.139]
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpd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