Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
72228a2
)
l3xc: reset dpo on delete
20/33020/2
author
Benoît Ganne
<bganne@cisco.com>
Tue, 6 Jul 2021 14:12:06 +0000
(16:12 +0200)
committer
Neale Ranns
<neale@graphiant.com>
Tue, 6 Jul 2021 15:43:20 +0000
(15:43 +0000)
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>
src/plugins/l3xc/l3xc.c
patch
|
blob
|
history
diff --git
a/src/plugins/l3xc/l3xc.c
b/src/plugins/l3xc/l3xc.c
index
21f3eea
..
ac0e4cf
100644
(file)
--- 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);