From 3169e9ff1ef673402aa05332096fb877ca2f4b25 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Tue, 6 Jul 2021 16:12:06 +0200 Subject: l3xc: reset dpo on delete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When removing a l3xc path we must release the corresponding dpo. Type: fix Change-Id: Ib6309797cb11374264c786e064f262ad13c6f0a1 Signed-off-by: Benoît Ganne --- src/plugins/l3xc/l3xc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/l3xc') 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); -- cgit 1.2.3-korg