acl-plugin: hash lookup bitmask not cleared when ACL is unapplied from interface... 80/7980/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 10 Aug 2017 12:19:58 +0000 (14:19 +0200)
committerNeale Ranns <nranns@cisco.com>
Thu, 10 Aug 2017 16:21:52 +0000 (16:21 +0000)
commit1de7d7044434196610190011ebb431f054701259
tree83a16a48cd60adede775bacf17a4c7dcb68fef70
parente6423bef32ca2ffcfcd7a092eb4673badd53ea4c
acl-plugin: hash lookup bitmask not cleared when ACL is unapplied from interface (VPP-935)

The logic in hash ACL bitmask update was using the vector
of ACLs applied to the interface to rebuild the hash lookup mask.
However, in transient cases (like doing group manipulation with
hash ACLs), that will not hold true. Thus, make
a local copy of for which ACL indices the hash_acl_apply
was called previously, and maintain that one local
to the hash_lookup.c file logic.

Change-Id: I30187d68febce8bba2ab6ffbb1eee13b5c96a44b
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c
src/plugins/acl/hash_lookup.c
src/plugins/acl/hash_lookup_types.h