FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
flow_api.c File Reference
+ Include dependency graph for flow_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void ipv4_addr_and_mask_convert (vl_api_ip4_address_and_mask_t *vl_api_addr, ip4_address_and_mask_t *vnet_addr)
 
static void ipv6_addr_and_mask_convert (vl_api_ip6_address_and_mask_t *vl_api_addr, ip6_address_and_mask_t *vnet_addr)
 
static void protocol_and_mask_convert (vl_api_ip_prot_and_mask_t *vl_api_protocol, ip_prot_and_mask_t *vnet_protocol)
 
static void port_and_mask_convert (vl_api_ip_port_and_mask_t *vl_api_port, ip_port_and_mask_t *vnet_port)
 
static void ipv4_n_tuple_flow_convert (vl_api_flow_ip4_n_tuple_t *vl_api_flow, vnet_flow_ip4_n_tuple_t *f)
 
static void ipv6_n_tuple_flow_convert (vl_api_flow_ip6_n_tuple_t *vl_api_flow, vnet_flow_ip6_n_tuple_t *f)
 
static void ipv4_n_tuple_tagged_flow_convert (vl_api_flow_ip4_n_tuple_tagged_t *vl_api_flow, vnet_flow_ip4_n_tuple_tagged_t *f)
 
static void ipv6_n_tuple_tagged_flow_convert (vl_api_flow_ip6_n_tuple_tagged_t *vl_api_flow, vnet_flow_ip6_n_tuple_tagged_t *f)
 
static void ipv4_l2tpv3oip_flow_convert (vl_api_flow_ip4_l2tpv3oip_t *vl_api_flow, vnet_flow_ip4_l2tpv3oip_t *f)
 
static void ipv4_ipsec_esp_flow_convert (vl_api_flow_ip4_ipsec_esp_t *vl_api_flow, vnet_flow_ip4_ipsec_esp_t *f)
 
static void ipv4_ipsec_ah_flow_convert (vl_api_flow_ip4_ipsec_ah_t *vl_api_flow, vnet_flow_ip4_ipsec_ah_t *f)
 
static void ipv4_gtpu_flow_convert (vl_api_flow_ip4_gtpu_t *vl_api_flow, vnet_flow_ip4_gtpu_t *f)
 
static void ipv4_gtpc_flow_convert (vl_api_flow_ip4_gtpc_t *vl_api_flow, vnet_flow_ip4_gtpc_t *f)
 
static void vl_api_flow_add_t_handler (vl_api_flow_add_t *mp)
 
static void vl_api_flow_del_t_handler (vl_api_flow_del_t *mp)
 
static void vl_api_flow_enable_t_handler (vl_api_flow_enable_t *mp)
 
static void vl_api_flow_disable_t_handler (vl_api_flow_disable_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_thw_flow_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (hw_flow_api_hookup)
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(FLOW_ADD, flow_add) \
_(FLOW_DEL, flow_del) \
_(FLOW_ENABLE, flow_enable) \
_(FLOW_DISABLE, flow_disable)

Definition at line 48 of file flow_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 36 of file flow_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 292 of file flow_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 41 of file flow_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 42 of file flow_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 32 of file flow_api.c.

Function Documentation

◆ hw_flow_api_hookup()

static clib_error_t* hw_flow_api_hookup ( vlib_main_t vm)
static

Definition at line 314 of file flow_api.c.

+ Here is the call graph for this function:

◆ ipv4_addr_and_mask_convert()

static void ipv4_addr_and_mask_convert ( vl_api_ip4_address_and_mask_t *  vl_api_addr,
ip4_address_and_mask_t vnet_addr 
)
inlinestatic

Definition at line 55 of file flow_api.c.

+ Here is the caller graph for this function:

◆ ipv4_gtpc_flow_convert()

static void ipv4_gtpc_flow_convert ( vl_api_flow_ip4_gtpc_t *  vl_api_flow,
vnet_flow_ip4_gtpc_t *  f 
)
inlinestatic

Definition at line 174 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv4_gtpu_flow_convert()

static void ipv4_gtpu_flow_convert ( vl_api_flow_ip4_gtpu_t *  vl_api_flow,
vnet_flow_ip4_gtpu_t *  f 
)
inlinestatic

Definition at line 160 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv4_ipsec_ah_flow_convert()

static void ipv4_ipsec_ah_flow_convert ( vl_api_flow_ip4_ipsec_ah_t *  vl_api_flow,
vnet_flow_ip4_ipsec_ah_t *  f 
)
inlinestatic

Definition at line 149 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv4_ipsec_esp_flow_convert()

static void ipv4_ipsec_esp_flow_convert ( vl_api_flow_ip4_ipsec_esp_t *  vl_api_flow,
vnet_flow_ip4_ipsec_esp_t *  f 
)
inlinestatic

Definition at line 138 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv4_l2tpv3oip_flow_convert()

static void ipv4_l2tpv3oip_flow_convert ( vl_api_flow_ip4_l2tpv3oip_t *  vl_api_flow,
vnet_flow_ip4_l2tpv3oip_t *  f 
)
inlinestatic

Definition at line 127 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv4_n_tuple_flow_convert()

static void ipv4_n_tuple_flow_convert ( vl_api_flow_ip4_n_tuple_t *  vl_api_flow,
vnet_flow_ip4_n_tuple_t *  f 
)
inlinestatic

Definition at line 85 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv4_n_tuple_tagged_flow_convert()

static void ipv4_n_tuple_tagged_flow_convert ( vl_api_flow_ip4_n_tuple_tagged_t *  vl_api_flow,
vnet_flow_ip4_n_tuple_tagged_t *  f 
)
inlinestatic

Definition at line 109 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv6_addr_and_mask_convert()

static void ipv6_addr_and_mask_convert ( vl_api_ip6_address_and_mask_t *  vl_api_addr,
ip6_address_and_mask_t vnet_addr 
)
inlinestatic

Definition at line 62 of file flow_api.c.

+ Here is the caller graph for this function:

◆ ipv6_n_tuple_flow_convert()

static void ipv6_n_tuple_flow_convert ( vl_api_flow_ip6_n_tuple_t *  vl_api_flow,
vnet_flow_ip6_n_tuple_t *  f 
)
static

Definition at line 97 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipv6_n_tuple_tagged_flow_convert()

static void ipv6_n_tuple_tagged_flow_convert ( vl_api_flow_ip6_n_tuple_tagged_t *  vl_api_flow,
vnet_flow_ip6_n_tuple_tagged_t *  f 
)
inlinestatic

Definition at line 118 of file flow_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ port_and_mask_convert()

static void port_and_mask_convert ( vl_api_ip_port_and_mask_t *  vl_api_port,
ip_port_and_mask_t vnet_port 
)
inlinestatic

Definition at line 77 of file flow_api.c.

+ Here is the caller graph for this function:

◆ protocol_and_mask_convert()

static void protocol_and_mask_convert ( vl_api_ip_prot_and_mask_t *  vl_api_protocol,
ip_prot_and_mask_t vnet_protocol 
)
inlinestatic

Definition at line 69 of file flow_api.c.

+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 306 of file flow_api.c.

+ Here is the caller graph for this function:

◆ vl_api_flow_add_t_handler()

static void vl_api_flow_add_t_handler ( vl_api_flow_add_t mp)
static

Definition at line 188 of file flow_api.c.

+ Here is the call graph for this function:

◆ vl_api_flow_del_t_handler()

static void vl_api_flow_del_t_handler ( vl_api_flow_del_t mp)
static

Definition at line 257 of file flow_api.c.

+ Here is the call graph for this function:

◆ vl_api_flow_disable_t_handler()

static void vl_api_flow_disable_t_handler ( vl_api_flow_disable_t mp)
static

Definition at line 281 of file flow_api.c.

+ Here is the call graph for this function:

◆ vl_api_flow_enable_t_handler()

static void vl_api_flow_enable_t_handler ( vl_api_flow_enable_t mp)
static

Definition at line 269 of file flow_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( hw_flow_api_hookup  )
+ Here is the caller graph for this function: