Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
LISP: do not try to delete paths when fwd entry is negative
[vpp.git]
/
src
/
vnet
/
lisp-gpe
/
lisp_gpe_fwd_entry.c
diff --git
a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
index
1c34e6e
..
c898b9f
100644
(file)
--- a/
src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
+++ b/
src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
@@
-510,10
+510,13
@@
del_ip_fwd_entry_i (lisp_gpe_main_t * lgm, lisp_gpe_fwd_entry_t * lfe)
lisp_fwd_path_t *path;
fib_protocol_t fproto;
lisp_fwd_path_t *path;
fib_protocol_t fproto;
- vec_foreach (path, lfe->paths)
- {
- lisp_gpe_adjacency_unlock (path->lisp_adj);
- }
+ if (LISP_GPE_FWD_ENTRY_TYPE_NEGATIVE != lfe->type)
+ {
+ vec_foreach (path, lfe->paths)
+ {
+ lisp_gpe_adjacency_unlock (path->lisp_adj);
+ }
+ }
delete_fib_entries (lfe);
delete_fib_entries (lfe);