acl: fix stats-segment counters validation on acl update 35/21335/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 15 Aug 2019 12:26:17 +0000 (12:26 +0000)
committerDave Barach <openvpp@barachs.net>
Fri, 16 Aug 2019 19:54:39 +0000 (19:54 +0000)
commitc02924ec6ebe0aa8e4903c6ca2cc0bf6c36da8cb
tree250105b8cbd9759ddffbdd08c65b51c5b2383946
parent5cd987dda679fe50b9cd7a834bb9162db39ade78
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>
(cherry picked from commit 4c945dacb9ff9da731301feb26b1edb4ac00e8bd)
src/plugins/acl/acl.c
src/plugins/acl/acl_test.c
test/test_acl_plugin_l2l3.py