aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan/vxlan.h
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2021-12-13 11:26:30 -0800
committerDamjan Marion <dmarion@me.com>2021-12-14 10:38:51 +0000
commitb8de7d43e4955bb4025cd0e0e7390279841b6d7d (patch)
treed4caedd2b510a0b3d610b105e501588f7c0ef770 /src/vnet/vxlan/vxlan.h
parent9b7e8acf792cced80e6775bc5668d9db415cdb46 (diff)
vxlan: crash on configuring vxlan tunnel on l3 mode
Configure a vxlan tunnel using this CLI and then assign an ip address to the vxlan tunnel cause VPP to crash immediately create vxlan tunnel src x.x.x.x dst y.y.y.y vni 1000 decap-next node ethernet-input l3 set interface ip address vxlan_tunnel0 z.z.z.z/24 It looks like when l3 mode is configured, the code calls the wrong function to register the interface Type: fix Fixes: 3e38422ab905d26ab1625c74268e30c94327ea54 Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Ie1a08efc028f37fb528a7dfd7048ff6836bb8ddc
Diffstat (limited to 'src/vnet/vxlan/vxlan.h')
-rw-r--r--src/vnet/vxlan/vxlan.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/vxlan/vxlan.h b/src/vnet/vxlan/vxlan.h
index d6dad7a6fae..290f03d57c4 100644
--- a/src/vnet/vxlan/vxlan.h
+++ b/src/vnet/vxlan/vxlan.h
@@ -134,7 +134,8 @@ typedef struct
u32 dev_instance; /* Real device instance in tunnel vector */
u32 user_instance; /* Instance name being shown to user */
- VNET_DECLARE_REWRITE;
+ VNET_DECLARE_REWRITE;
+ u8 is_l3;
} vxlan_tunnel_t;
#define foreach_vxlan_input_next \