acl-plugin: clean up the code enabling/disabling acl-plugin processing on interface 77/7277/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 22 Jun 2017 12:51:06 +0000 (14:51 +0200)
committerNeale Ranns <nranns@cisco.com>
Thu, 22 Jun 2017 15:11:10 +0000 (15:11 +0000)
commite48457a99d3e9294f2eced29d3840023cc4de4b9
tree50976a974b7644094927a9253a0574fc24890227
parentd36346afb7a2bf30e7e6920684cad6cbce5d0f30
acl-plugin: clean up the code enabling/disabling acl-plugin processing on interface

Multiple subsequent calls to vnet_feature_enable_disable() to enable the feature
cause the feature to be inserted into the processing graph multiple times in a row.
This might be argued to be a bug in that function, but enabling already enabled feature
is suboptimal anyway, so avoid that. The existing tests already catch this issue whenever
the ASSERT() part of this patch was added.

Change-Id: Ia2c06f7dc87bbe05795c2c7b7d19ea06270ce150
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c
src/plugins/acl/fa_node.c