vnet: l2-classify: prefetch (n+2, n+3) rather than (n+1, n+2) inside dual loop code 16/11016/5
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 7 Mar 2018 16:35:59 +0000 (17:35 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Sun, 11 Mar 2018 19:29:27 +0000 (19:29 +0000)
commit2ca200501e3e58a8f7d2497ff9ba5a39f2f47014
tree6fcf43ff0f53a62f0c4b6e76167ce10d51b74ad6
parenteeef247aef46684f2537644b9ef1ade2e313437e
vnet: l2-classify: prefetch (n+2, n+3) rather than (n+1, n+2) inside dual loop code

The dual loop within the L2 classifier processes the (n, n+1) packets,
the prefetching was trying to prefetch (n+1, n+2) - thus half of the
prefetches were not used - because the next iteration needs (n+2, n+3).

Change-Id: I827d20845dbdd0dcdcf463ee25661a7921428992
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vnet/l2/l2_input_classify.c
src/vnet/l2/l2_output_classify.c