Improve the sample plugin node dispatch function 90/13690/6
authorDave Barach <dbarach@cisco.com>
Wed, 25 Jul 2018 20:56:38 +0000 (16:56 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 26 Jul 2018 19:09:14 +0000 (19:09 +0000)
commit9594b56e6f795751cfef562920ded7874376e91c
tree717f1fab947ff7d3f3cb944660c7dd990cd93857
parent06dcd45ff81e06bc8cf40ed487c0b2652d346a5a
Improve the sample plugin node dispatch function

Three separate implementations, which vary by nearly a factor of two
in performance. Most of the performance difference is due to swapping
the src/dst mac addresses with an avx2 vector shuffle instruction.

Change-Id: Ieb36546d6074e4ac720d452a99d013c698135c57
Signed-off-by: Dave Barach <dave@barachs.net>
src/examples/sample-plugin/sample/node.c