gbp: fix contract rule handling 60/22460/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 6 Sep 2019 11:43:16 +0000 (13:43 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 3 Oct 2019 08:41:20 +0000 (08:41 +0000)
commit5308ce13f6b070cb1e4558cb70b330ef548544cf
treec8d9f9baab257d95cb73229c3ee8eae03c9cceb4
parent68ac86e923ce55bcc0ea82c4b5a0e0ef83b56c23
gbp: fix contract rule handling

Fix a memory leak when removing old GBP contract rules and make sure a
GBP contract rule exists when matching the corresponding ACL rule.

Type: fix
Fixes: 13a08cc098

Change-Id: Iba67d573e69280ad998488a7a3d3462341c68ea4
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 44ca60ecdba866160bebbc6c1eb983674819d429)
src/plugins/gbp/gbp_api.c
src/plugins/gbp/gbp_contract.c
src/plugins/gbp/gbp_contract.h
src/plugins/gbp/gbp_policy.c
src/plugins/gbp/gbp_policy.h
src/plugins/gbp/gbp_policy_dpo.c
src/plugins/gbp/gbp_policy_node.c