acl: fix stats-segment counters validation on acl update 29/21329/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 15 Aug 2019 12:26:17 +0000 (12:26 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 15 Aug 2019 15:22:11 +0000 (15:22 +0000)
commit4c945dacb9ff9da731301feb26b1edb4ac00e8bd
treebc1b05075d3ad6ab960ce63db970336edde61035
parent2f51729bb31fcc2717782aa465835d93d73a567f
acl: fix stats-segment counters validation on acl update

The stats-segment validation/clear logic for acl counters was wrong,
fix it. Also add the code to the unittests to cover that case,
add a vat command to enable/disable counters, clean up
the unnecessary endian conversion and remove the stray clib_warning()

Change-Id: I421297a92e4aeb885c468c72a97cec25981df615
Type: fix
Ticket: VPP-1744
Fixes: f995c7122ba0d024b17bc3232e8edd18d5e25088
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c
src/plugins/acl/acl_test.c
test/test_acl_plugin_l2l3.py