From: Benoît Ganne Date: Tue, 6 Jul 2021 14:12:06 +0000 (+0200) Subject: l3xc: reset dpo on delete X-Git-Tag: v22.02-rc0~224 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=3169e9ff1ef673402aa05332096fb877ca2f4b25;p=vpp.git 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 --- 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);