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:
7ff7453
)
vxlan:fix ip6 tunnel deletion
84/15284/3
author
Eyal Bari
<ebari@cisco.com>
Sun, 14 Oct 2018 07:54:32 +0000
(10:54 +0300)
committer
John Lo
<loj@cisco.com>
Sun, 14 Oct 2018 23:00:35 +0000
(23:00 +0000)
Change-Id: I70fb7394f85b26f7e632d74fc31ef83597efdd16
Signed-off-by: Eyal Bari <ebari@cisco.com>
src/vnet/vxlan/vxlan.c
patch
|
blob
|
history
diff --git
a/src/vnet/vxlan/vxlan.c
b/src/vnet/vxlan/vxlan.c
index
93a4e26
..
4276d66
100644
(file)
--- a/
src/vnet/vxlan/vxlan.c
+++ b/
src/vnet/vxlan/vxlan.c
@@
-599,7
+599,8
@@
int vnet_vxlan_add_del_tunnel
if (!p)
return VNET_API_ERROR_NO_SUCH_ENTRY;
- u32 instance = vxm->tunnel_index_by_sw_if_index[p->sw_if_index];
+ u32 instance = is_ip6 ? key6.value :
+ vxm->tunnel_index_by_sw_if_index[p->sw_if_index];
vxlan_tunnel_t *t = pool_elt_at_index (vxm->tunnels, instance);
sw_if_index = t->sw_if_index;