aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-07-06 16:12:06 +0200
committerNeale Ranns <neale@graphiant.com>2021-07-06 15:43:20 +0000
commit3169e9ff1ef673402aa05332096fb877ca2f4b25 (patch)
tree4d1215785244aded274b2b7cb1230ee38398a7cb
parent72228a259b8f09fad271c2c117f7acd5348ae2c9 (diff)
l3xc: reset dpo on delete
When removing a l3xc path we must release the corresponding dpo. Type: fix Change-Id: Ib6309797cb11374264c786e064f262ad13c6f0a1 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/plugins/l3xc/l3xc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/l3xc/l3xc.c b/src/plugins/l3xc/l3xc.c
index 21f3eea8b01..ac0e4cf0d2c 100644
--- a/src/plugins/l3xc/l3xc.c
+++ b/src/plugins/l3xc/l3xc.c
@@ -184,6 +184,7 @@ l3xc_delete (u32 sw_if_index, u8 is_ip6)
0, &l3xci, sizeof (l3xci));
fib_path_list_child_remove (l3xc->l3xc_pl, l3xc->l3xc_sibling);
+ dpo_reset (&l3xc->l3xc_dpo);
l3xc_db_remove (l3xc->l3xc_sw_if_index, fproto);
pool_put (l3xc_pool, l3xc);