acl-plugin: 5-tuple parse: get rid of memcpy and move to flags vs. bitfields 09/15709/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 25 Oct 2018 17:01:49 +0000 (19:01 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 5 Nov 2018 21:53:43 +0000 (21:53 +0000)
commit87ee947d0b053b33571c5e33617b138236bada59
tree5f4fb61107d8ffa2faba1743c4b62c583724745b
parentb0073e276d9e12f02f8f9874fd09ae532a0baa47
acl-plugin: 5-tuple parse: get rid of memcpy and move to flags vs. bitfields

Using bitfield struct for 5tuple proved to be fragile from
the performance standpoint - the zeroizing of the entire
structure and then setting the separate pieces of it
triggers increased memory latency. So, move to using
flags byte.

Also, use the direct object copies rather than memcpy.

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