diff options
| author | willy tarreau <[email protected]> | 2014-01-16 08:20:17 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-01-16 15:15:43 -0800 |
| commit | f19fadfce8717d1da5e38c12d0dbe473bc3a7626 (patch) | |
| tree | 66855a00be2e09b2d81b8b52a20aafa0c5761fe3 /tools/perf/scripts/python/bin | |
| parent | 8ec2cd48fe0d08f4c5370e925f083a68e4593ec8 (diff) | |
net: mvneta: implement rx_copybreak
calling dma_map_single()/dma_unmap_single() is quite expensive compared
to copying a small packet. So let's copy short frames and keep the buffers
mapped. We set the limit to 256 bytes which seems to give good results both
on the XP-GP board and on the AX3/4.
The Rx small packet rate increased by 16.4% doing this, from 486kpps to
573kpps. It is worth noting that even the call to the function
dma_sync_single_range_for_cpu() is expensive (300 ns) although less
than dma_unmap_single(). Without it, the packet rate raises to 711kpps
(+24% more). Thus on systems where coherency from device to CPU is
guaranteed by a snoop control unit, this patch should provide even more
gains, and probably rx_copybreak could be increased.
Cc: Thomas Petazzoni <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Tested-by: Arnaud Ebalard <[email protected]>
Signed-off-by: Willy Tarreau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions