Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vxlan:offload RX flow
[vpp.git]
/
src
/
vnet
/
vxlan
/
vxlan.h
diff --git
a/src/vnet/vxlan/vxlan.h
b/src/vnet/vxlan/vxlan.h
index
3c74bfd
..
0f226aa
100644
(file)
--- a/
src/vnet/vxlan/vxlan.h
+++ b/
src/vnet/vxlan/vxlan.h
@@
-112,6
+112,7
@@
typedef struct {
*/
u32 sibling_index;
*/
u32 sibling_index;
+ u32 flow_index; /* infra flow index */
u32 dev_instance; /* Real device instance in tunnel vector */
u32 user_instance; /* Instance name being shown to user */
u32 dev_instance; /* Real device instance in tunnel vector */
u32 user_instance; /* Instance name being shown to user */
@@
-161,6
+162,7
@@
typedef struct {
/* Record used instances */
uword *instance_used;
/* Record used instances */
uword *instance_used;
+ u32 flow_id_start;
} vxlan_main_t;
extern vxlan_main_t vxlan_main;
} vxlan_main_t;
extern vxlan_main_t vxlan_main;
@@
-169,6
+171,7
@@
extern vlib_node_registration_t vxlan4_input_node;
extern vlib_node_registration_t vxlan6_input_node;
extern vlib_node_registration_t vxlan4_encap_node;
extern vlib_node_registration_t vxlan6_encap_node;
extern vlib_node_registration_t vxlan6_input_node;
extern vlib_node_registration_t vxlan4_encap_node;
extern vlib_node_registration_t vxlan6_encap_node;
+extern vlib_node_registration_t vxlan4_flow_input_node;
u8 * format_vxlan_encap_trace (u8 * s, va_list * args);
u8 * format_vxlan_encap_trace (u8 * s, va_list * args);
@@
-191,6
+194,11
@@
int vnet_vxlan_add_del_tunnel
void vnet_int_vxlan_bypass_mode
(u32 sw_if_index, u8 is_ip6, u8 is_enable);
void vnet_int_vxlan_bypass_mode
(u32 sw_if_index, u8 is_ip6, u8 is_enable);
+
+int vnet_vxlan_add_del_rx_flow
+(u32 hw_if_index, u32 t_imdex, int is_add);
+
+u32 vnet_vxlan_get_tunnel_index (u32 sw_if_index);
#endif /* included_vnet_vxlan_h */
/*
#endif /* included_vnet_vxlan_h */
/*