X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fvxlan%2Fvxlan.h;h=f428ee54d78ab519c5444432904ba73ebcf8e7f7;hb=71612d61930e57e7c8ebf9e5647b15a4b23720b2;hp=1ebb89489cffb5e313e80a45e18d3b2f21c907df;hpb=5ac9bf53b3360f7987ee31ab7377d801e6c713db;p=vpp.git diff --git a/src/vnet/vxlan/vxlan.h b/src/vnet/vxlan/vxlan.h index 1ebb89489cf..f428ee54d78 100644 --- a/src/vnet/vxlan/vxlan.h +++ b/src/vnet/vxlan/vxlan.h @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include @@ -72,12 +72,6 @@ typedef struct { /* FIB DPO for IP forwarding of VXLAN encap packet */ dpo_id_t next_dpo; - /* storage for the hash key */ - union { - vxlan4_tunnel_key_t *key4; /* unused for now */ - vxlan6_tunnel_key_t *key6; - }; - /* vxlan VNI in HOST byte order */ u32 vni; @@ -137,12 +131,6 @@ typedef enum { VXLAN_N_ERROR, } vxlan_input_error_t; -typedef struct { - ip46_address_t * ip; - fib_node_index_t fib_entry_index; - adj_index_t mcast_adj_index; -} mcast_remote_t; - typedef struct { /* vector of encap tunnel instances */ vxlan_tunnel_t * tunnels; @@ -156,9 +144,8 @@ typedef struct { uword * vtep4; /* local ip4 VTEPs keyed on their ip4 addr */ uword * vtep6; /* local ip6 VTEPs keyed on their ip6 addr */ - /* set of active remote mcast VTEP */ - mcast_remote_t * mcast_eps; - uword * mcast_ep_by_ip; /* mcast VTEPs keyed on their ip46 addr */ + /* mcast shared info */ + uword * mcast_shared; /* keyed on mcast ip46 addr */ /* Free vlib hw_if_indices */ u32 * free_vxlan_tunnel_hw_if_indices; @@ -171,7 +158,7 @@ typedef struct { vnet_main_t * vnet_main; } vxlan_main_t; -vxlan_main_t vxlan_main; +extern vxlan_main_t vxlan_main; extern vlib_node_registration_t vxlan4_input_node; extern vlib_node_registration_t vxlan6_input_node; @@ -196,4 +183,6 @@ typedef struct { int vnet_vxlan_add_del_tunnel (vnet_vxlan_add_del_tunnel_args_t *a, u32 * sw_if_indexp); +void vnet_int_vxlan_bypass_mode +(u32 sw_if_index, u8 is_ip6, u8 is_enable); #endif /* included_vnet_vxlan_h */