acl: implement counters 17/20117/17
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 13 Jun 2019 15:23:21 +0000 (15:23 +0000)
committerDamjan Marion <dmarion@me.com>
Wed, 24 Jul 2019 18:16:41 +0000 (18:16 +0000)
commitf995c7122ba0d024b17bc3232e8edd18d5e25088
tree1bb44ddff0d009cf5e7fa62c8418b094edcaaa79
parent025cd9c867bef937724535033ccdb979292b7714
acl: implement counters

implement per-acl-number counters in the stats segment.
They are created during the ACL creation,
the counters are incremented in the dataplane using
the new inline function with the extra parameter being
the packet size. Counting in shared segment adds
a noticeable overhead, so add also an API to
turn the counters on.

Type: feature

Change-Id: I8af7b0c31a3d986b68089eb52452aed45df66c7b
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.api
src/plugins/acl/acl.c
src/plugins/acl/acl.h
src/plugins/acl/dataplane_node.c
src/plugins/acl/public_inlines.h
test/test_acl_plugin.py