FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
interface.c File Reference
+ Include dependency graph for interface.c:

Go to the source code of this file.

Data Structures

struct  vnet_sw_hw_interface_state_t
 

Macros

#define log_debug(fmt, ...)   vlib_log_debug(if_default_log.class, fmt, __VA_ARGS__)
 
#define log_err(fmt, ...)   vlib_log_err(if_default_log.class, fmt, __VA_ARGS__)
 

Typedefs

typedef enum vnet_interface_helper_flags_t_ vnet_interface_helper_flags_t
 

Enumerations

enum  vnet_interface_helper_flags_t_ { VNET_INTERFACE_SET_FLAGS_HELPER_IS_CREATE = (1 << 0), VNET_INTERFACE_SET_FLAGS_HELPER_WANT_REDISTRIBUTE = (1 << 1) }
 

Functions

 VLIB_REGISTER_LOG_CLASS (if_default_log, static)
 
static clib_error_tvnet_hw_interface_set_flags_helper (vnet_main_t *vnm, u32 hw_if_index, vnet_hw_interface_flags_t flags, vnet_interface_helper_flags_t helper_flags)
 
static clib_error_tvnet_sw_interface_set_flags_helper (vnet_main_t *vnm, u32 sw_if_index, vnet_sw_interface_flags_t flags, vnet_interface_helper_flags_t helper_flags)
 
static clib_error_tvnet_hw_interface_set_class_helper (vnet_main_t *vnm, u32 hw_if_index, u32 hw_class_index, u32 redistribute)
 
static void serialize_vec_vnet_sw_hw_interface_state (serialize_main_t *m, va_list *va)
 
static void unserialize_vec_vnet_sw_hw_interface_state (serialize_main_t *m, va_list *va)
 
static vnet_sw_interface_flags_t vnet_hw_interface_flags_to_sw (vnet_hw_interface_flags_t hwf)
 
void serialize_vnet_interface_state (serialize_main_t *m, va_list *va)
 
static vnet_hw_interface_flags_t vnet_sw_interface_flags_to_hw (vnet_sw_interface_flags_t swf)
 
void unserialize_vnet_interface_state (serialize_main_t *m, va_list *va)
 
static clib_error_tcall_elf_section_interface_callbacks (vnet_main_t *vnm, u32 if_index, u32 flags, _vnet_interface_function_list_elt_t **elts)
 
static clib_error_tcall_hw_interface_add_del_callbacks (vnet_main_t *vnm, u32 hw_if_index, u32 is_create)
 
static clib_error_tcall_sw_interface_add_del_callbacks (vnet_main_t *vnm, u32 sw_if_index, u32 is_create)
 
clib_error_tvnet_hw_interface_set_flags (vnet_main_t *vnm, u32 hw_if_index, vnet_hw_interface_flags_t flags)
 
clib_error_tvnet_sw_interface_set_flags (vnet_main_t *vnm, u32 sw_if_index, vnet_sw_interface_flags_t flags)
 
void vnet_sw_interface_admin_up (vnet_main_t *vnm, u32 sw_if_index)
 
void vnet_sw_interface_admin_down (vnet_main_t *vnm, u32 sw_if_index)
 
static void vnet_if_update_lookup_tables (vnet_main_t *vnm, u32 sw_if_index)
 
static u32 vnet_create_sw_interface_no_callbacks (vnet_main_t *vnm, vnet_sw_interface_t *template)
 
clib_error_tvnet_create_sw_interface (vnet_main_t *vnm, vnet_sw_interface_t *template, u32 *sw_if_index)
 
void vnet_delete_sw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
static clib_error_tcall_sw_interface_mtu_change_callbacks (vnet_main_t *vnm, u32 sw_if_index)
 
void vnet_sw_interface_set_mtu (vnet_main_t *vnm, u32 sw_if_index, u32 mtu)
 
void vnet_sw_interface_set_protocol_mtu (vnet_main_t *vnm, u32 sw_if_index, u32 mtu[])
 
void vnet_sw_interface_ip_directed_broadcast (vnet_main_t *vnm, u32 sw_if_index, u8 enable)
 
static walk_rc_t sw_interface_walk_callback (vnet_main_t *vnm, u32 sw_if_index, void *ctx)
 
void vnet_hw_interface_set_mtu (vnet_main_t *vnm, u32 hw_if_index, u32 mtu)
 
static void setup_tx_node (vlib_main_t *vm, u32 node_index, vnet_device_class_t *dev_class)
 
static void setup_output_node (vlib_main_t *vm, u32 node_index, vnet_hw_interface_class_t *hw_class)
 
u32 vnet_register_interface (vnet_main_t *vnm, u32 dev_class_index, u32 dev_instance, u32 hw_class_index, u32 hw_instance)
 
void vnet_delete_hw_interface (vnet_main_t *vnm, u32 hw_if_index)
 
void vnet_hw_interface_walk_sw (vnet_main_t *vnm, u32 hw_if_index, vnet_hw_sw_interface_walk_t fn, void *ctx)
 Walk the SW interfaces on a HW interface - this is the super interface and any sub-interfaces. More...
 
void vnet_hw_interface_walk (vnet_main_t *vnm, vnet_hw_interface_walk_t fn, void *ctx)
 Walk all the HW interface. More...
 
void vnet_sw_interface_walk (vnet_main_t *vnm, vnet_sw_interface_walk_t fn, void *ctx)
 Walk all the SW interfaces in the system. More...
 
void vnet_hw_interface_init_for_class (vnet_main_t *vnm, u32 hw_if_index, u32 hw_class_index, u32 hw_instance)
 
clib_error_tvnet_hw_interface_set_class (vnet_main_t *vnm, u32 hw_if_index, u32 hw_class_index)
 
static int vnet_hw_interface_rx_redirect_to_node_helper (vnet_main_t *vnm, u32 hw_if_index, u32 node_index, u32 redistribute)
 
int vnet_hw_interface_rx_redirect_to_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
word vnet_sw_interface_compare (vnet_main_t *vnm, uword sw_if_index0, uword sw_if_index1)
 
word vnet_hw_interface_compare (vnet_main_t *vnm, uword hw_if_index0, uword hw_if_index1)
 
int vnet_sw_interface_is_p2p (vnet_main_t *vnm, u32 sw_if_index)
 
int vnet_sw_interface_is_nbma (vnet_main_t *vnm, u32 sw_if_index)
 
clib_error_tvnet_interface_init (vlib_main_t *vm)
 
int vnet_interface_name_renumber (u32 sw_if_index, u32 new_show_dev_instance)
 
clib_error_tvnet_rename_interface (vnet_main_t *vnm, u32 hw_if_index, char *new_name)
 
clib_error_tvnet_hw_interface_add_del_mac_address (vnet_main_t *vnm, u32 hw_if_index, const u8 *mac_address, u8 is_add)
 
static clib_error_tvnet_hw_interface_change_mac_address_helper (vnet_main_t *vnm, u32 hw_if_index, const u8 *mac_address)
 
clib_error_tvnet_hw_interface_change_mac_address (vnet_main_t *vnm, u32 hw_if_index, const u8 *mac_address)
 
void vnet_sw_interface_update_unnumbered (u32 unnumbered_sw_if_index, u32 ip_sw_if_index, u8 enable)
 
vnet_l3_packet_type_t vnet_link_to_l3_proto (vnet_link_t link)
 Convert a link to to an Ethertype. More...
 
vnet_mtu_t vnet_link_to_mtu (vnet_link_t link)
 
u8default_build_rewrite (vnet_main_t *vnm, u32 sw_if_index, vnet_link_t link_type, const void *dst_address)
 Return a complete, zero-length (aka placeholder) rewrite. More...
 
void default_update_adjacency (vnet_main_t *vnm, u32 sw_if_index, u32 ai)
 Default adjacency update function. More...
 
clib_error_tvnet_hw_interface_set_rss_queues (vnet_main_t *vnm, vnet_hw_interface_t *hi, clib_bitmap_t *bitmap)
 
void collect_detailed_interface_stats_flag_set (void)
 
void collect_detailed_interface_stats_flag_clear (void)
 
static clib_error_tcollect_detailed_interface_stats_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

int collect_detailed_interface_stats_flag = 0
 
static vlib_cli_command_t collect_detailed_interface_stats_command
 (constructor) VLIB_CLI_COMMAND (collect_detailed_interface_stats_command) More...
 

Macro Definition Documentation

◆ log_debug

#define log_debug (   fmt,
  ... 
)    vlib_log_debug(if_default_log.class, fmt, __VA_ARGS__)

Definition at line 54 of file interface.c.

◆ log_err

#define log_err (   fmt,
  ... 
)    vlib_log_err(if_default_log.class, fmt, __VA_ARGS__)

Definition at line 55 of file interface.c.

Typedef Documentation

◆ vnet_interface_helper_flags_t

Enumeration Type Documentation

◆ vnet_interface_helper_flags_t_

Enumerator
VNET_INTERFACE_SET_FLAGS_HELPER_IS_CREATE 
VNET_INTERFACE_SET_FLAGS_HELPER_WANT_REDISTRIBUTE 

Definition at line 57 of file interface.c.

Function Documentation

◆ call_elf_section_interface_callbacks()

static clib_error_t* call_elf_section_interface_callbacks ( vnet_main_t vnm,
u32  if_index,
u32  flags,
_vnet_interface_function_list_elt_t **  elts 
)
static

Definition at line 245 of file interface.c.

+ Here is the caller graph for this function:

◆ call_hw_interface_add_del_callbacks()

static clib_error_t* call_hw_interface_add_del_callbacks ( vnet_main_t vnm,
u32  hw_if_index,
u32  is_create 
)
static

Definition at line 271 of file interface.c.

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

◆ call_sw_interface_add_del_callbacks()

static clib_error_t* call_sw_interface_add_del_callbacks ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_create 
)
static

Definition at line 299 of file interface.c.

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

◆ call_sw_interface_mtu_change_callbacks()

static clib_error_t* call_sw_interface_mtu_change_callbacks ( vnet_main_t vnm,
u32  sw_if_index 
)
static

Definition at line 699 of file interface.c.

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

◆ collect_detailed_interface_stats_cli()

static clib_error_t* collect_detailed_interface_stats_cli ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1814 of file interface.c.

+ Here is the call graph for this function:

◆ collect_detailed_interface_stats_flag_clear()

void collect_detailed_interface_stats_flag_clear ( void  )

Definition at line 1808 of file interface.c.

+ Here is the caller graph for this function:

◆ collect_detailed_interface_stats_flag_set()

void collect_detailed_interface_stats_flag_set ( void  )

Definition at line 1802 of file interface.c.

+ Here is the caller graph for this function:

◆ default_build_rewrite()

u8* default_build_rewrite ( vnet_main_t vnm,
u32  sw_if_index,
vnet_link_t  link_type,
const void *  dst_address 
)

Return a complete, zero-length (aka placeholder) rewrite.

Definition at line 1705 of file interface.c.

+ Here is the caller graph for this function:

◆ default_update_adjacency()

void default_update_adjacency ( vnet_main_t vnm,
u32  sw_if_index,
u32  ai 
)

Default adjacency update function.

Definition at line 1713 of file interface.c.

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

◆ serialize_vec_vnet_sw_hw_interface_state()

static void serialize_vec_vnet_sw_hw_interface_state ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 92 of file interface.c.

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

◆ serialize_vnet_interface_state()

void serialize_vnet_interface_state ( serialize_main_t m,
va_list *  va 
)

Definition at line 134 of file interface.c.

+ Here is the call graph for this function:

◆ setup_output_node()

static void setup_output_node ( vlib_main_t vm,
u32  node_index,
vnet_hw_interface_class_t hw_class 
)
static

Definition at line 802 of file interface.c.

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

◆ setup_tx_node()

static void setup_tx_node ( vlib_main_t vm,
u32  node_index,
vnet_device_class_t dev_class 
)
static

Definition at line 789 of file interface.c.

+ Here is the call graph for this function:

◆ sw_interface_walk_callback()

static walk_rc_t sw_interface_walk_callback ( vnet_main_t vnm,
u32  sw_if_index,
void *  ctx 
)
static

Definition at line 767 of file interface.c.

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

◆ unserialize_vec_vnet_sw_hw_interface_state()

static void unserialize_vec_vnet_sw_hw_interface_state ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 107 of file interface.c.

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

◆ unserialize_vnet_interface_state()

void unserialize_vnet_interface_state ( serialize_main_t m,
va_list *  va 
)

Definition at line 196 of file interface.c.

+ Here is the call graph for this function:

◆ VLIB_REGISTER_LOG_CLASS()

VLIB_REGISTER_LOG_CLASS ( if_default_log  ,
static   
)

◆ vnet_create_sw_interface()

clib_error_t* vnet_create_sw_interface ( vnet_main_t vnm,
vnet_sw_interface_t template,
u32 sw_if_index 
)

Definition at line 619 of file interface.c.

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

◆ vnet_create_sw_interface_no_callbacks()

static u32 vnet_create_sw_interface_no_callbacks ( vnet_main_t vnm,
vnet_sw_interface_t template 
)
static

Definition at line 574 of file interface.c.

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

◆ vnet_delete_hw_interface()

void vnet_delete_hw_interface ( vnet_main_t vnm,
u32  hw_if_index 
)

Definition at line 1052 of file interface.c.

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

◆ vnet_delete_sw_interface()

void vnet_delete_sw_interface ( vnet_main_t vnm,
u32  sw_if_index 
)

Definition at line 677 of file interface.c.

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

◆ vnet_hw_interface_add_del_mac_address()

clib_error_t* vnet_hw_interface_add_del_mac_address ( vnet_main_t vnm,
u32  hw_if_index,
const u8 mac_address,
u8  is_add 
)

Definition at line 1517 of file interface.c.

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

◆ vnet_hw_interface_change_mac_address()

clib_error_t* vnet_hw_interface_change_mac_address ( vnet_main_t vnm,
u32  hw_if_index,
const u8 mac_address 
)

Definition at line 1607 of file interface.c.

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

◆ vnet_hw_interface_change_mac_address_helper()

static clib_error_t* vnet_hw_interface_change_mac_address_helper ( vnet_main_t vnm,
u32  hw_if_index,
const u8 mac_address 
)
static

Definition at line 1561 of file interface.c.

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

◆ vnet_hw_interface_compare()

word vnet_hw_interface_compare ( vnet_main_t vnm,
uword  hw_if_index0,
uword  hw_if_index1 
)

Definition at line 1302 of file interface.c.

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

◆ vnet_hw_interface_flags_to_sw()

static vnet_sw_interface_flags_t vnet_hw_interface_flags_to_sw ( vnet_hw_interface_flags_t  hwf)
static

Definition at line 123 of file interface.c.

◆ vnet_hw_interface_init_for_class()

void vnet_hw_interface_init_for_class ( vnet_main_t vnm,
u32  hw_if_index,
u32  hw_class_index,
u32  hw_instance 
)

Definition at line 1182 of file interface.c.

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

◆ vnet_hw_interface_rx_redirect_to_node()

int vnet_hw_interface_rx_redirect_to_node ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index 
)

Definition at line 1279 of file interface.c.

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

◆ vnet_hw_interface_rx_redirect_to_node_helper()

static int vnet_hw_interface_rx_redirect_to_node_helper ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index,
u32  redistribute 
)
static

Definition at line 1260 of file interface.c.

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

◆ vnet_hw_interface_set_class()

clib_error_t* vnet_hw_interface_set_class ( vnet_main_t vnm,
u32  hw_if_index,
u32  hw_class_index 
)

Definition at line 1252 of file interface.c.

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

◆ vnet_hw_interface_set_class_helper()

static clib_error_t * vnet_hw_interface_set_class_helper ( vnet_main_t vnm,
u32  hw_if_index,
u32  hw_class_index,
u32  redistribute 
)
static

Definition at line 1195 of file interface.c.

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

◆ vnet_hw_interface_set_flags()

clib_error_t* vnet_hw_interface_set_flags ( vnet_main_t vnm,
u32  hw_if_index,
vnet_hw_interface_flags_t  flags 
)

Definition at line 513 of file interface.c.

+ Here is the call graph for this function:

◆ vnet_hw_interface_set_flags_helper()

static clib_error_t * vnet_hw_interface_set_flags_helper ( vnet_main_t vnm,
u32  hw_if_index,
vnet_hw_interface_flags_t  flags,
vnet_interface_helper_flags_t  helper_flags 
)
static

Definition at line 307 of file interface.c.

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

◆ vnet_hw_interface_set_mtu()

void vnet_hw_interface_set_mtu ( vnet_main_t vnm,
u32  hw_if_index,
u32  mtu 
)

Definition at line 775 of file interface.c.

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

◆ vnet_hw_interface_set_rss_queues()

clib_error_t* vnet_hw_interface_set_rss_queues ( vnet_main_t vnm,
vnet_hw_interface_t hi,
clib_bitmap_t bitmap 
)

Definition at line 1762 of file interface.c.

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

◆ vnet_hw_interface_walk()

void vnet_hw_interface_walk ( vnet_main_t vnm,
vnet_hw_interface_walk_t  fn,
void *  ctx 
)

Walk all the HW interface.

Definition at line 1146 of file interface.c.

+ Here is the caller graph for this function:

◆ vnet_hw_interface_walk_sw()

void vnet_hw_interface_walk_sw ( vnet_main_t vnm,
u32  hw_if_index,
vnet_hw_sw_interface_walk_t  fn,
void *  ctx 
)

Walk the SW interfaces on a HW interface - this is the super interface and any sub-interfaces.

Definition at line 1123 of file interface.c.

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

◆ vnet_if_update_lookup_tables()

static void vnet_if_update_lookup_tables ( vnet_main_t vnm,
u32  sw_if_index 
)
static

Definition at line 559 of file interface.c.

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

◆ vnet_interface_init()

clib_error_t* vnet_interface_init ( vlib_main_t vm)

Definition at line 1339 of file interface.c.

+ Here is the call graph for this function:

◆ vnet_interface_name_renumber()

int vnet_interface_name_renumber ( u32  sw_if_index,
u32  new_show_dev_instance 
)

Definition at line 1452 of file interface.c.

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

◆ vnet_link_to_l3_proto()

vnet_l3_packet_type_t vnet_link_to_l3_proto ( vnet_link_t  link)

Convert a link to to an Ethertype.

Definition at line 1667 of file interface.c.

+ Here is the caller graph for this function:

◆ vnet_link_to_mtu()

vnet_mtu_t vnet_link_to_mtu ( vnet_link_t  link)

Definition at line 1689 of file interface.c.

+ Here is the caller graph for this function:

◆ vnet_register_interface()

u32 vnet_register_interface ( vnet_main_t vnm,
u32  dev_class_index,
u32  dev_instance,
u32  hw_class_index,
u32  hw_instance 
)

Definition at line 812 of file interface.c.

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

◆ vnet_rename_interface()

clib_error_t* vnet_rename_interface ( vnet_main_t vnm,
u32  hw_if_index,
char *  new_name 
)

Definition at line 1481 of file interface.c.

+ Here is the call graph for this function:

◆ vnet_sw_interface_admin_down()

void vnet_sw_interface_admin_down ( vnet_main_t vnm,
u32  sw_if_index 
)

Definition at line 546 of file interface.c.

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

◆ vnet_sw_interface_admin_up()

void vnet_sw_interface_admin_up ( vnet_main_t vnm,
u32  sw_if_index 
)

Definition at line 533 of file interface.c.

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

◆ vnet_sw_interface_compare()

word vnet_sw_interface_compare ( vnet_main_t vnm,
uword  sw_if_index0,
uword  sw_if_index1 
)

Definition at line 1288 of file interface.c.

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

◆ vnet_sw_interface_flags_to_hw()

static vnet_hw_interface_flags_t vnet_sw_interface_flags_to_hw ( vnet_sw_interface_flags_t  swf)
static

Definition at line 185 of file interface.c.

+ Here is the caller graph for this function:

◆ vnet_sw_interface_ip_directed_broadcast()

void vnet_sw_interface_ip_directed_broadcast ( vnet_main_t vnm,
u32  sw_if_index,
u8  enable 
)

Definition at line 748 of file interface.c.

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

◆ vnet_sw_interface_is_nbma()

int vnet_sw_interface_is_nbma ( vnet_main_t vnm,
u32  sw_if_index 
)

Definition at line 1329 of file interface.c.

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

◆ vnet_sw_interface_is_p2p()

int vnet_sw_interface_is_p2p ( vnet_main_t vnm,
u32  sw_if_index 
)

Definition at line 1314 of file interface.c.

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

◆ vnet_sw_interface_set_flags()

clib_error_t* vnet_sw_interface_set_flags ( vnet_main_t vnm,
u32  sw_if_index,
vnet_sw_interface_flags_t  flags 
)

Definition at line 523 of file interface.c.

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

◆ vnet_sw_interface_set_flags_helper()

static clib_error_t * vnet_sw_interface_set_flags_helper ( vnet_main_t vnm,
u32  sw_if_index,
vnet_sw_interface_flags_t  flags,
vnet_interface_helper_flags_t  helper_flags 
)
static

Definition at line 358 of file interface.c.

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

◆ vnet_sw_interface_set_mtu()

void vnet_sw_interface_set_mtu ( vnet_main_t vnm,
u32  sw_if_index,
u32  mtu 
)

Definition at line 706 of file interface.c.

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

◆ vnet_sw_interface_set_protocol_mtu()

void vnet_sw_interface_set_protocol_mtu ( vnet_main_t vnm,
u32  sw_if_index,
u32  mtu[] 
)

Definition at line 721 of file interface.c.

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

◆ vnet_sw_interface_update_unnumbered()

void vnet_sw_interface_update_unnumbered ( u32  unnumbered_sw_if_index,
u32  ip_sw_if_index,
u8  enable 
)

Definition at line 1616 of file interface.c.

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

◆ vnet_sw_interface_walk()

void vnet_sw_interface_walk ( vnet_main_t vnm,
vnet_sw_interface_walk_t  fn,
void *  ctx 
)

Walk all the SW interfaces in the system.

Definition at line 1164 of file interface.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ collect_detailed_interface_stats_command

vlib_cli_command_t collect_detailed_interface_stats_command
static
Initial value:
= {
.path = "interface collect detailed-stats",
.short_help = "interface collect detailed-stats <enable|disable>",
}

(constructor) VLIB_CLI_COMMAND (collect_detailed_interface_stats_command)

Definition at line 1846 of file interface.c.

◆ collect_detailed_interface_stats_flag

int collect_detailed_interface_stats_flag = 0

Definition at line 1799 of file interface.c.

collect_detailed_interface_stats_cli
static clib_error_t * collect_detailed_interface_stats_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface.c:1814