acl-plugin: refactor to introduce multiarch dataplane functions 51/12651/6
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 18 May 2018 16:48:00 +0000 (18:48 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 22 May 2018 17:39:07 +0000 (17:39 +0000)
commit3e0ee6ec3ce1d3f32c1faca7514048e55412220e
tree9bc2e1a1cfd74a3c7f0b7422fc889e65e7e8c794
parent14864770be4068b34ffc1124f47f5e9fe2a929d2
acl-plugin: refactor to introduce multiarch dataplane functions

This commit splits the functions from fa_node.c
into the pure dataplane node functions (which are multiarch-compiled),
session management node functions (which are compiled only once),
and session find/add/delete functions which are split out into the inlines.

As part of the refactoring:

- get rid of BV() macros in the affected chunk of code,
  rather use the explicit bihash function names.

- add the magic trailer to the new files to
  ensure make checkstyle watches them.

- move the bihash_template.c include for 40_8 bihash into acl.c

Change-Id: I4d781e9ec4307ea84e92af93c09470ea2bd0c375
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl.am
src/plugins/acl/acl.c
src/plugins/acl/dataplane_node.c [new file with mode: 0644]
src/plugins/acl/fa_node.c [deleted file]
src/plugins/acl/sess_mgmt_node.c [new file with mode: 0644]
src/plugins/acl/session_inlines.h [new file with mode: 0644]