|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
50 u32 ip4_table_index,
u32 ip6_table_index,
66 return VNET_API_ERROR_NO_SUCH_TABLE;
77 (
"Non-existent intf_idx=%d with table_index=%d for delete",
79 return VNET_API_ERROR_NO_SUCH_TABLE;
106 u32 ip4_table_index = ~0;
107 u32 ip6_table_index = ~0;
117 else if (
unformat (input,
"ip4-table %d", &ip4_table_index))
119 else if (
unformat (input,
"ip6-table %d", &ip6_table_index))
137 ip6_table_index, is_add);
144 case VNET_API_ERROR_NO_MATCHING_INTERFACE:
147 case VNET_API_ERROR_NO_SUCH_ENTRY:
155 .path =
"set flow classify",
157 "set flow classify interface <int> [ip4-table <index>]\n"
158 " [ip6-table <index>] [del]",
220 .path =
"show classify flow",
221 .short_help =
"show classify flow type [ip4|ip6]",
@ FLOW_CLASSIFY_TABLE_IP4
vnet_config_main_t config_main
#define clib_error_return(e, args...)
u32 * classify_table_index_by_sw_if_index[FLOW_CLASSIFY_N_TABLES]
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vnet_hw_if_output_node_runtime_t * r
vnet_classify_main_t * vnet_classify_main
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
#define vec_elt(v, i)
Get vector value at index i.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vnet_main_t * vnet_get_main(void)
static clib_error_t * set_flow_classify_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static void vnet_flow_classify_feature_enable(vlib_main_t *vnm, flow_classify_main_t *fcm, u32 sw_if_index, flow_classify_table_id_t tid, int feature_enable)
static uword unformat_table_type(unformat_input_t *input, va_list *va)
static vlib_cli_command_t show_flow_classify_command
(constructor) VLIB_CLI_COMMAND (show_flow_classify_command)
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
format_function_t format_vnet_sw_if_index_name
unformat_function_t unformat_vnet_sw_interface
#define vec_validate_init_empty(V, I, INIT)
Make sure vector is long enough for given index and initialize empty space (no header,...
int vnet_set_flow_classify_intfc(vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 is_add)
struct _vnet_classify_main vnet_classify_main_t
int vnet_feature_enable_disable(const char *arc_name, const char *node_name, u32 sw_if_index, int enable_disable, void *feature_config, u32 n_feature_config_bytes)
static vnet_feature_config_main_t * vnet_get_feature_arc_config_main(u8 arc_index)
static vlib_cli_command_t set_input_acl_command
(constructor) VLIB_CLI_COMMAND (set_input_acl_command)
#define clib_warning(format, args...)
@ FLOW_CLASSIFY_TABLE_IP6
vnet_config_main_t * vnet_config_main[FLOW_CLASSIFY_N_TABLES]
static clib_error_t * show_flow_classify_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
u8 vnet_get_feature_arc_index(const char *s)
vl_api_interface_index_t sw_if_index
flow_classify_main_t flow_classify_main
vl_api_fib_path_type_t type