examples/l3fwd: improve grouping by destination port
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 22 Jul 2014 16:04:47 +0000 (17:04 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Aug 2014 16:25:05 +0000 (18:25 +0200)
commit7e7ab814226844a0abafba5162de224f60324369
treeeb6b0262c8684cf807f695427fea5022eaab95c0
parent030df0102ce762360df343a63bbcfbbbc30872b1
examples/l3fwd: improve grouping by destination port

Latest changes introduced a small degradation for the corner case
when each input packet is destined to the different port.
For the test-case when 1 core manages 4 ports and packet stream looks like:
IPV4_DSTPORT0, IPV4_DSTPORT1, IPV4_DSTPORT3, IPV4_DSTPORT4, IPV4_DSTPORT0, ...
non-optimised code path outperforms optimised one by 2-3%.
These changes supposed to close that gap.
From my testing: now for the case described above optimised code path
produces same numbers as non-optimised one.
For other test-cases numbers remain about the same.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/l3fwd/main.c