Fixing the mutliarch versions of vxlan, geneve and friends. Ensures that
main struct is correctly sized for all multiarch permutations.
Type: fix
Fixes:
290526e3c
Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: I7c4c435763a5dcb0c3b429cd4f361d373d480c03
u16 msg_id_base;
/* cache for last 8 geneve tunnel */
u16 msg_id_base;
/* cache for last 8 geneve tunnel */
vtep4_cache_t vtep4_u512;
vtep4_cache_t vtep4_u512;
vnet_main_t *vnet_main;
u32 flow_id_start;
/* cache for last 8 gtpu tunnel */
vnet_main_t *vnet_main;
u32 flow_id_start;
/* cache for last 8 gtpu tunnel */
vtep4_cache_t vtep4_u512;
vtep4_cache_t vtep4_u512;
return VTEP_CHECK_PASS;
}
return VTEP_CHECK_PASS;
}
typedef struct
{
vtep4_key_t vtep4_cache[8];
int idx;
} vtep4_cache_t;
typedef struct
{
vtep4_key_t vtep4_cache[8];
int idx;
} vtep4_cache_t;
always_inline u8
vtep4_check_vector (vtep_table_t * t, vlib_buffer_t * b0, ip4_header_t * ip40,
vtep4_key_t * last_k4, vtep4_cache_t * vtep4_u512)
always_inline u8
vtep4_check_vector (vtep_table_t * t, vlib_buffer_t * b0, ip4_header_t * ip40,
vtep4_key_t * last_k4, vtep4_cache_t * vtep4_u512)
vnet_main_t *vnet_main;
/* cache for last 8 vxlan_gpe tunnel */
vnet_main_t *vnet_main;
/* cache for last 8 vxlan_gpe tunnel */
vtep4_cache_t vtep4_u512;
vtep4_cache_t vtep4_u512;
/** List of next nodes for the decap indexed on protocol */
uword decap_next_node_list[VXLAN_GPE_PROTOCOL_MAX];
/** List of next nodes for the decap indexed on protocol */
uword decap_next_node_list[VXLAN_GPE_PROTOCOL_MAX];
u32 flow_id_start;
/* cache for last 8 vxlan tunnel */
u32 flow_id_start;
/* cache for last 8 vxlan tunnel */
vtep4_cache_t vtep4_u512;
vtep4_cache_t vtep4_u512;