]> git.droids-corp.org - dpdk.git/commit
examples/dma: add force minimal copy size parameter
authorChengwen Feng <fengchengwen@huawei.com>
Sun, 24 Apr 2022 06:07:41 +0000 (14:07 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 6 Jun 2022 21:32:32 +0000 (23:32 +0200)
commitbebbf0721943ad2c6632026c4235e48d5f37b88f
treeeded17f5fabeda3f56dc14c86c67a717525e8c1b
parent7d3cb76fba200e1649842319facb932d9a05467d
examples/dma: add force minimal copy size parameter

This patch adds force minimal copy size parameter
(-m/--force-min-copy-size), so when do copy by CPU or DMA, the real copy
size will be the maximum of mbuf's data_len and this parameter.

This parameter was designed to compare the performance between CPU copy
and DMA copy. User could send small packets with a high rate to drive
the performance test.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
examples/dma/dmafwd.c