app/testpmd: tune default parameters
authorCunming Liang <cunming.liang@intel.com>
Thu, 26 Jun 2014 06:53:34 +0000 (14:53 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Jun 2014 11:06:10 +0000 (13:06 +0200)
commite9378bbc1f5b76ab309fbc02f0e1e81061b7f764
treefffb66433847ccc7ed6bf1bc8cd59cd8c231cf94
parent836853d3d4cf7b7dc111b1d4b5ce503423c66be5
app/testpmd: tune default parameters

We usually use testpmd fwd to demonstrate IO forwarding throughput.
For best throughput, it has to assign special parameters to testpmd.
To make it easier to run, now set it as defalut value.
Such parameters are MBUF Mempool Cache and RX/TX threshold registers.
    MBCACHE: 250
    RX threshold registers: pthresh=8 hthresh=8 wthresh=0
    TX threshold registers: pthresh=32 hthresh=0 wthresh=0

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Yong Liu <yong.liu@intel.com>
Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h