From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52])
 by dpdk.org (Postfix) with ESMTP id 42373594F
 for <dev@dpdk.org>; Thu, 13 Nov 2014 00:41:02 +0100 (CET)
Received: by mail-wg0-f52.google.com with SMTP id b13so15381216wgh.25
 for <dev@dpdk.org>; Wed, 12 Nov 2014 15:50:58 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:organization
 :user-agent:in-reply-to:references:mime-version
 :content-transfer-encoding:content-type;
 bh=QuXNGYLFvYLYRLPUT6zmfveHlZcYVZ68Q6Ng3skkxG4=;
 b=gqi+3IQme6UlvNFrtPB7NB6T4BM3E1KhRs5rLtPc0w+VeFm+eQt8PibXf2eKOGeFZe
 KvhjXgTPDPZVnlVEgzqnvkNj+usvBleYq3+j9RjLM+W0fJT5hHrDS9DI1g06YxtyuV/7
 D9g0pTsVVR5zR/d3h4SMCcS3Vwi/KH6Ax+rzQqlm0CYCmTdOCYs37WkUvIu2G89bJnaB
 X9j4fddvRT2BFekETuVdnJbaL8G4j5wj3WRgJuIk885UhWc38piZJTH4VTetyy9W0K2l
 1EA8b3W0xG8nd/SSpBbRp1r7vZsyCRcMxQPXmY7aAEMeHEy5nAXFCUuJmhTCiv9mIPG2
 XbFw==
X-Gm-Message-State: ALoCoQnktxtBVaH2IkcFYH/j+9XND9UaskRYm20/qybdw1AwjGm05lW97vwdju1Ld0Qb3qYoIs1G
X-Received: by 10.180.101.102 with SMTP id ff6mr54809298wib.0.1415836258476;
 Wed, 12 Nov 2014 15:50:58 -0800 (PST)
Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136])
 by mx.google.com with ESMTPSA id v6sm3830293wjz.40.2014.11.12.15.50.57
 for <multiple recipients>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 12 Nov 2014 15:50:57 -0800 (PST)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Cunming Liang <cunming.liang@intel.com>
Date: Thu, 13 Nov 2014 00:50:39 +0100
Message-ID: <5323281.s2Rz1llAxX@xps13>
Organization: 6WIND
User-Agent: KMail/4.14.2 (Linux/3.17.2-1-ARCH; KDE/4.14.2; x86_64; ; )
In-Reply-To: <1415773476-31004-1-git-send-email-cunming.liang@intel.com>
References: <1414372809-14044-1-git-send-email-cunming.liang@intel.com>
 <1415773476-31004-1-git-send-email-cunming.liang@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v7 0/7] app/test: unit test to measure cycles
	per packet
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://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Nov 2014 23:41:02 -0000

2014-11-12 14:24, Cunming Liang:
> v7 update:
> # patch split and re-orginize
> 
> v6 update:
> # leave FUNC_PTR_OR_*_RET unmodified
> 
> v5 update:
> # fix the confusing of retval in some API of rte_ethdev
> 
> v4 ignore
> 
> v3 update:
> # Codes refine according to the feedback.
>   1. add ether_format_addr to rte_ether.h
>   2. fix typo in code comments.
>   3. %lu to %PRIu64, fixing 32-bit targets compilation err
> # merge 2 small incremental patches to the first one.
>   The whole unit test as a single patch in [PATCH v3 2/2]
> # rebase code to the latest master
> 
> v2 update:
> Rebase code to the latest master branch.
> 
> It provides unit test to measure cycles/packet in NIC loopback mode.
> It simply gives the average cycles of IO used per packet without test equipment.
> When doing the test, make sure the link is UP.
> 
> There's two stream control mode support, one is continues, another is burst.
> The former continues to forward the injected packets until reaching a certain amount of number.
> The latter one stop when all the injected packets are received.
> In burst stream, now measure two situations, with or without desc. cache conflict.
> By default, it runs in continues stream mode to measure the whole rxtx.
> 
> Usage Example:
> 1. Run unit test app in interactive mode
>     app/test -c f -n 4 -- -i
> 2. Set stream control mode, by default is continuous
>     set_rxtx_sc [continuous|poll_before_xmit|poll_after_xmit]
> 3. If choose continuous stream, there are another two options can configure
>     3.1 choose rx/tx pair, default is vector
>         set_rxtx_mode [vector|scalar|full|hybrid]
>         Note: To get acurate scalar fast, plz choose 'vector' or 'hybrid' without INC_VEC=y in config 
>     3.2 choose the area of masurement, default is rxtx
>         set_rxtx_anchor [rxtx|rxonly|txonly]
> 4. Run and wait for the result
>     pmd_perf_autotest
> 
> For who simply just want to see how much cycles cost per packet.
> Compile DPDK, Run 'app/test', and type 'pmd_perf_autotest', that's it.
> Nothing else needs to configure. 
> Using other options when you understand and what to measures more. 

Applied

Thanks
-- 
Thomas