acl-plugin: split (L3) and (L4/pkt) logic of creation of 5tuple structure, optimize... 88/13088/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Sun, 27 May 2018 15:41:27 +0000 (17:41 +0200)
committerDamjan Marion <dmarion@me.com>
Sun, 17 Jun 2018 12:05:55 +0000 (12:05 +0000)
commite0b6c8a96d6d3fce583d0ef4b851a50a74afba5d
treebc338e43ed637e64ed4f8ebdfada376057eef357
parentc1c5baa1a99c5754cfa73c679ed4fe664ef3f881
acl-plugin: split (L3) and (L4/pkt) logic of creation of 5tuple structure, optimize stores in the (l4/pkt)

Having two pieces of code - one for now much simpler to recreate L3 info,
one for a more difficult do build L4/pkt metadata allows more
degrees of freedom for optimizations.

Also, construct the metadata in local variables first before
saving it into the memory structure, this fewer memory stores
and they are better aligned, allowing to coalesce with
subsequent reads if needed.

Change-Id: Icb35d933834b14294f875362c9b58db3feb38d99
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/public_inlines.h