acl-plugin: warning printed when acl_add_replace already applied ACLs (complete the... 47/8147/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 18 Aug 2017 17:10:39 +0000 (19:10 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 25 Aug 2017 14:12:49 +0000 (14:12 +0000)
commitce9714032d36d18abe72981552219dff871ff392
treedf704b7a50c6ecc3a47327db1ba36867887c11d5
parent778df28c2a1520f58c293700c578bdd73e61cecf
acl-plugin: warning printed when acl_add_replace already applied ACLs (complete the fix for VPP-935)

The fix for VPP-935 missed the case that hash_acl_add() and hash_acl_delete() may be called
during the replacement of the existing applied ACL, as a result the "applied" logic needs
to be replicated for the hash acls separately, since it is a lower layer.

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