acl: make MACIP ACL apply/unapply/delete logic more robust 82/4182/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 8 Dec 2016 19:33:19 +0000 (20:33 +0100)
committerOle Trøan <otroan@employees.org>
Thu, 8 Dec 2016 21:18:38 +0000 (21:18 +0000)
commitc9b20bc7a5399fd1e7bf2d33e7c4f1f08ef1c1e4
tree19f1bc704800b89917c487bb209d4680d8432880
parent32905661d1d16198d74ec4596fe95659ebf81b67
acl: make MACIP ACL apply/unapply/delete logic more robust

1. vnet_set_input_acl_intfc expects currently applied table ids to
   remove them properly, fixed that.
2. check if the interface has MACIP ACL applied before unapplying it
3. if applying MACIP ACL to interface that has one already applied,
   unapply that first.

These changes required also swapping the order of the add/del functions.

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