FD.io VPP  v21.01.1
Vector Packet Processing
interface_funcs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vnet_interface_output_runtime_t
 

Macros

#define VNET_SIMULATED_ETHERNET_TX_NEXT_ETHERNET_INPUT   VNET_INTERFACE_TX_N_NEXT
 
#define VNET_SIMULATED_ETHERNET_TX_NEXT_L2_INPUT   (VNET_SIMULATED_ETHERNET_TX_NEXT_ETHERNET_INPUT + 1)
 

Typedefs

typedef enum walk_rc_t_ walk_rc_t
 Walk return code. More...
 
typedef walk_rc_t(* vnet_hw_sw_interface_walk_t) (vnet_main_t *vnm, u32 sw_if_index, void *ctx)
 Call back walk type for walking SW indices on a HW interface. More...
 
typedef walk_rc_t(* vnet_sw_interface_walk_t) (vnet_main_t *vnm, vnet_sw_interface_t *si, void *ctx)
 Call back walk type for walking SW indices on a HW interface. More...
 
typedef walk_rc_t(* vnet_hw_interface_walk_t) (vnet_main_t *vnm, u32 hw_if_index, void *ctx)
 Call back walk type for walking all HW indices. More...
 

Enumerations

enum  walk_rc_t_ { WALK_STOP, WALK_CONTINUE }
 Walk return code. More...
 
enum  vnet_interface_output_next_t { VNET_INTERFACE_OUTPUT_NEXT_DROP, VNET_INTERFACE_OUTPUT_NEXT_TX }
 
enum  vnet_interface_tx_next_t { VNET_INTERFACE_TX_NEXT_DROP, VNET_INTERFACE_TX_N_NEXT }
 
enum  vnet_interface_output_error_t { VNET_INTERFACE_OUTPUT_ERROR_INTERFACE_DOWN, VNET_INTERFACE_OUTPUT_ERROR_INTERFACE_DELETED, VNET_INTERFACE_OUTPUT_ERROR_NO_BUFFERS_FOR_GSO, VNET_INTERFACE_OUTPUT_ERROR_UNHANDLED_GSO_TYPE }
 

Functions

static vnet_hw_interface_tvnet_get_hw_interface (vnet_main_t *vnm, u32 hw_if_index)
 
static vnet_hw_interface_tvnet_get_hw_interface_or_null (vnet_main_t *vnm, u32 hw_if_index)
 
static vnet_sw_interface_tvnet_get_sw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
static vnet_sw_interface_tvnet_get_sw_interface_or_null (vnet_main_t *vnm, u32 sw_if_index)
 
static vnet_sw_interface_tvnet_get_hw_sw_interface (vnet_main_t *vnm, u32 hw_if_index)
 
static vnet_sw_interface_tvnet_get_sup_sw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
static vnet_hw_interface_tvnet_get_sup_hw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
static vnet_hw_interface_tvnet_get_sup_hw_interface_api_visible_or_null (vnet_main_t *vnm, u32 sw_if_index)
 
static vnet_hw_interface_class_tvnet_get_hw_interface_class (vnet_main_t *vnm, u32 hw_class_index)
 
static vnet_device_class_tvnet_get_device_class (vnet_main_t *vnm, u32 dev_class_index)
 
static u8vnet_get_sw_interface_tag (vnet_main_t *vnm, u32 sw_if_index)
 
static void vnet_set_sw_interface_tag (vnet_main_t *vnm, u8 *tag, u32 sw_if_index)
 
static void vnet_clear_sw_interface_tag (vnet_main_t *vnm, u32 sw_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_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_walk (vnet_main_t *vnm, vnet_hw_interface_walk_t fn, void *ctx)
 Walk all the HW interface. More...
 
u32 vnet_register_interface (vnet_main_t *vnm, u32 dev_class_index, u32 dev_instance, u32 hw_class_index, u32 hw_instance)
 
void vnet_set_interface_output_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 Set interface output node - for interface registered without its output/tx nodes created because its VNET_DEVICE_CLASS did not specify any tx_function. More...
 
clib_error_tvnet_create_sw_interface (vnet_main_t *vnm, vnet_sw_interface_t *template, u32 *sw_if_index)
 
void vnet_delete_hw_interface (vnet_main_t *vnm, u32 hw_if_index)
 
void vnet_delete_sw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
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)
 
static vnet_sw_interface_flags_t vnet_sw_interface_get_flags (vnet_main_t *vnm, u32 sw_if_index)
 
static uword vnet_sw_interface_is_valid (vnet_main_t *vnm, u32 sw_if_index)
 
static uword vnet_hw_interface_is_valid (vnet_main_t *vnm, u32 hw_if_index)
 
static uword vnet_sw_interface_is_admin_up (vnet_main_t *vnm, u32 sw_if_index)
 
static uword vnet_swif_is_api_visible (vnet_sw_interface_t *si)
 
static uword vnet_sw_interface_is_api_visible (vnet_main_t *vnm, u32 sw_if_index)
 
static uword vnet_sw_interface_is_api_valid (vnet_main_t *vnm, u32 sw_if_index)
 
static const u8vnet_sw_interface_get_hw_address (vnet_main_t *vnm, u32 sw_if_index)
 
static uword vnet_hw_interface_get_flags (vnet_main_t *vnm, u32 hw_if_index)
 
static u32 vnet_hw_interface_get_mtu (vnet_main_t *vnm, u32 hw_if_index)
 
static u32 vnet_sw_interface_get_mtu (vnet_main_t *vnm, u32 sw_if_index, vnet_mtu_t af)
 
static uword vnet_hw_interface_is_link_up (vnet_main_t *vnm, u32 hw_if_index)
 
static uword vnet_sw_interface_is_link_up (vnet_main_t *vnm, u32 sw_if_index)
 
static uword vnet_sw_interface_is_up (vnet_main_t *vnm, u32 sw_if_index)
 
static vlib_frame_tvnet_get_frame_to_sw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
static void vnet_put_frame_to_sw_interface (vnet_main_t *vnm, u32 sw_if_index, vlib_frame_t *f)
 
static void vnet_hw_interface_set_link_speed (vnet_main_t *vnm, u32 hw_if_index, u32 link_speed)
 
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)
 
clib_error_tvnet_hw_interface_set_class (vnet_main_t *vnm, u32 hw_if_index, u32 new_hw_class_index)
 
int vnet_hw_interface_rx_redirect_to_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
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_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)
 
clib_error_tvnet_hw_interface_change_mac_address (vnet_main_t *vnm, u32 hw_if_index, const u8 *mac_address)
 
clib_error_tset_hw_interface_change_rx_mode (vnet_main_t *vnm, u32 hw_if_index, u8 queue_id_valid, u32 queue_id, vnet_hw_if_rx_mode mode)
 
clib_error_tset_hw_interface_rx_placement (u32 hw_if_index, u32 queue_id, u32 thread_index, u8 is_main)
 
void vnet_hw_interface_set_mtu (vnet_main_t *vnm, u32 hw_if_index, u32 mtu)
 
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_update_unnumbered (u32 sw_if_index, u32 ip_sw_if_index, u8 enable)
 
int vnet_sw_interface_stats_collect_enable_disable (u32 sw_if_index, u8 enable)
 
void vnet_sw_interface_ip_directed_broadcast (vnet_main_t *vnm, u32 sw_if_index, u8 enable)
 
clib_error_tvnet_hw_interface_set_rss_queues (vnet_main_t *vnm, vnet_hw_interface_t *hi, clib_bitmap_t *bitmap)
 
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)
 
u8format_vnet_interface_output_trace (u8 *s, va_list *va)
 

Variables

format_function_t format_vnet_hw_interface
 
format_function_t format_vnet_hw_if_rx_mode
 
format_function_t format_vnet_hw_if_index_name
 
format_function_t format_vnet_sw_interface
 
format_function_t format_vnet_sw_interface_name
 
format_function_t format_vnet_sw_interface_name_override
 
format_function_t format_vnet_sw_if_index_name
 
format_function_t format_vnet_sw_interface_flags
 
unformat_function_t unformat_vnet_sw_interface
 
unformat_function_t unformat_vnet_hw_interface
 
unformat_function_t unformat_vnet_buffer_flags
 
unformat_function_t unformat_vnet_hw_interface_flags
 
unformat_function_t unformat_vnet_sw_interface_flags
 
format_function_t format_vtr
 
serialize_function_t serialize_vnet_interface_state
 
serialize_function_t unserialize_vnet_interface_state
 

Macro Definition Documentation

◆ VNET_SIMULATED_ETHERNET_TX_NEXT_ETHERNET_INPUT

#define VNET_SIMULATED_ETHERNET_TX_NEXT_ETHERNET_INPUT   VNET_INTERFACE_TX_N_NEXT

Definition at line 487 of file interface_funcs.h.

◆ VNET_SIMULATED_ETHERNET_TX_NEXT_L2_INPUT

#define VNET_SIMULATED_ETHERNET_TX_NEXT_L2_INPUT   (VNET_SIMULATED_ETHERNET_TX_NEXT_ETHERNET_INPUT + 1)

Definition at line 488 of file interface_funcs.h.

Typedef Documentation

◆ vnet_hw_interface_walk_t

typedef walk_rc_t(* vnet_hw_interface_walk_t) (vnet_main_t *vnm, u32 hw_if_index, void *ctx)

Call back walk type for walking all HW indices.

Definition at line 210 of file interface_funcs.h.

◆ vnet_hw_sw_interface_walk_t

typedef walk_rc_t(* vnet_hw_sw_interface_walk_t) (vnet_main_t *vnm, u32 sw_if_index, void *ctx)

Call back walk type for walking SW indices on a HW interface.

Definition at line 180 of file interface_funcs.h.

◆ vnet_sw_interface_walk_t

typedef walk_rc_t(* vnet_sw_interface_walk_t) (vnet_main_t *vnm, vnet_sw_interface_t *si, void *ctx)

Call back walk type for walking SW indices on a HW interface.

Definition at line 195 of file interface_funcs.h.

◆ walk_rc_t

typedef enum walk_rc_t_ walk_rc_t

Walk return code.

Enumeration Type Documentation

◆ vnet_interface_output_error_t

Enumerator
VNET_INTERFACE_OUTPUT_ERROR_INTERFACE_DOWN 
VNET_INTERFACE_OUTPUT_ERROR_INTERFACE_DELETED 
VNET_INTERFACE_OUTPUT_ERROR_NO_BUFFERS_FOR_GSO 
VNET_INTERFACE_OUTPUT_ERROR_UNHANDLED_GSO_TYPE 

Definition at line 490 of file interface_funcs.h.

◆ vnet_interface_output_next_t

Enumerator
VNET_INTERFACE_OUTPUT_NEXT_DROP 
VNET_INTERFACE_OUTPUT_NEXT_TX 

Definition at line 475 of file interface_funcs.h.

◆ vnet_interface_tx_next_t

Enumerator
VNET_INTERFACE_TX_NEXT_DROP 
VNET_INTERFACE_TX_N_NEXT 

Definition at line 481 of file interface_funcs.h.

◆ walk_rc_t_

enum walk_rc_t_

Walk return code.

Enumerator
WALK_STOP 
WALK_CONTINUE 

Definition at line 171 of file interface_funcs.h.

Function Documentation

◆ format_vnet_interface_output_trace()

u8* format_vnet_interface_output_trace ( u8 s,
va_list *  va 
)

Definition at line 61 of file interface_output.c.

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

◆ set_hw_interface_change_rx_mode()

clib_error_t* set_hw_interface_change_rx_mode ( vnet_main_t vnm,
u32  hw_if_index,
u8  queue_id_valid,
u32  queue_id,
vnet_hw_if_rx_mode  mode 
)

Definition at line 1534 of file interface_cli.c.

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

◆ set_hw_interface_rx_placement()

clib_error_t* set_hw_interface_rx_placement ( u32  hw_if_index,
u32  queue_id,
u32  thread_index,
u8  is_main 
)

Definition at line 1731 of file interface_cli.c.

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

◆ vnet_clear_sw_interface_tag()

static void vnet_clear_sw_interface_tag ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 156 of file interface_funcs.h.

+ Here is the caller graph for this function:

◆ 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 599 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 1011 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 657 of file interface.c.

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

◆ vnet_get_device_class()

static vnet_device_class_t* vnet_get_device_class ( vnet_main_t vnm,
u32  dev_class_index 
)
inlinestatic

Definition at line 124 of file interface_funcs.h.

+ Here is the caller graph for this function:

◆ vnet_get_frame_to_sw_interface()

static vlib_frame_t* vnet_get_frame_to_sw_interface ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 346 of file interface_funcs.h.

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

◆ vnet_get_hw_interface()

static vnet_hw_interface_t* vnet_get_hw_interface ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 44 of file interface_funcs.h.

◆ vnet_get_hw_interface_class()

static vnet_hw_interface_class_t* vnet_get_hw_interface_class ( vnet_main_t vnm,
u32  hw_class_index 
)
inlinestatic

Definition at line 117 of file interface_funcs.h.

+ Here is the caller graph for this function:

◆ vnet_get_hw_interface_or_null()

static vnet_hw_interface_t* vnet_get_hw_interface_or_null ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 50 of file interface_funcs.h.

+ Here is the caller graph for this function:

◆ vnet_get_hw_sw_interface()

static vnet_sw_interface_t* vnet_get_hw_sw_interface ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 72 of file interface_funcs.h.

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

◆ vnet_get_sup_hw_interface()

static vnet_hw_interface_t* vnet_get_sup_hw_interface ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 92 of file interface_funcs.h.

+ Here is the call graph for this function:

◆ vnet_get_sup_hw_interface_api_visible_or_null()

static vnet_hw_interface_t* vnet_get_sup_hw_interface_api_visible_or_null ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 101 of file interface_funcs.h.

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

◆ vnet_get_sup_sw_interface()

static vnet_sw_interface_t* vnet_get_sup_sw_interface ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 81 of file interface_funcs.h.

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

◆ vnet_get_sw_interface()

static vnet_sw_interface_t* vnet_get_sw_interface ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 58 of file interface_funcs.h.

◆ vnet_get_sw_interface_or_null()

static vnet_sw_interface_t* vnet_get_sw_interface_or_null ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 64 of file interface_funcs.h.

+ Here is the caller graph for this function:

◆ vnet_get_sw_interface_tag()

static u8* vnet_get_sw_interface_tag ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 131 of file interface_funcs.h.

+ 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 1487 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 1577 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 1259 of file interface.c.

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

◆ vnet_hw_interface_get_flags()

static uword vnet_hw_interface_get_flags ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 299 of file interface_funcs.h.

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

◆ vnet_hw_interface_get_mtu()

static u32 vnet_hw_interface_get_mtu ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 306 of file interface_funcs.h.

+ Here is the call graph for this function:

◆ 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 1139 of file interface.c.

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

◆ vnet_hw_interface_is_link_up()

static uword vnet_hw_interface_is_link_up ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 324 of file interface_funcs.h.

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

◆ vnet_hw_interface_is_valid()

static uword vnet_hw_interface_is_valid ( vnet_main_t vnm,
u32  hw_if_index 
)
inlinestatic

Definition at line 258 of file interface_funcs.h.

+ 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 1236 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  new_hw_class_index 
)

Definition at line 1209 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 509 of file interface.c.

+ Here is the call graph for this function:

◆ vnet_hw_interface_set_link_speed()

static void vnet_hw_interface_set_link_speed ( vnet_main_t vnm,
u32  hw_if_index,
u32  link_speed 
)
inlinestatic

Definition at line 361 of file interface_funcs.h.

+ 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 755 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 1725 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 1103 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 1080 of file interface.c.

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

◆ vnet_put_frame_to_sw_interface()

static void vnet_put_frame_to_sw_interface ( vnet_main_t vnm,
u32  sw_if_index,
vlib_frame_t f 
)
inlinestatic

Definition at line 353 of file interface_funcs.h.

+ Here is the call graph for this function:
+ 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 794 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 1451 of file interface.c.

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

◆ vnet_set_interface_output_node()

void vnet_set_interface_output_node ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index 
)

Set interface output node - for interface registered without its output/tx nodes created because its VNET_DEVICE_CLASS did not specify any tx_function.

This is typically the case for tunnel interfaces.

Definition at line 1240 of file interface_output.c.

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

◆ vnet_set_sw_interface_tag()

static void vnet_set_sw_interface_tag ( vnet_main_t vnm,
u8 tag,
u32  sw_if_index 
)
inlinestatic

Definition at line 141 of file interface_funcs.h.

+ Here is the caller 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 542 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 529 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 1245 of file interface.c.

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

◆ vnet_sw_interface_get_flags()

static vnet_sw_interface_flags_t vnet_sw_interface_get_flags ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 245 of file interface_funcs.h.

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

◆ vnet_sw_interface_get_hw_address()

static const u8* vnet_sw_interface_get_hw_address ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 292 of file interface_funcs.h.

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

◆ vnet_sw_interface_get_mtu()

static u32 vnet_sw_interface_get_mtu ( vnet_main_t vnm,
u32  sw_if_index,
vnet_mtu_t  af 
)
inlinestatic

Definition at line 313 of file interface_funcs.h.

+ Here is the call graph for this function:
+ 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 728 of file interface.c.

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

◆ vnet_sw_interface_is_admin_up()

static uword vnet_sw_interface_is_admin_up ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 265 of file interface_funcs.h.

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

◆ vnet_sw_interface_is_api_valid()

static uword vnet_sw_interface_is_api_valid ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 285 of file interface_funcs.h.

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

◆ vnet_sw_interface_is_api_visible()

static uword vnet_sw_interface_is_api_visible ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 278 of file interface_funcs.h.

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

◆ vnet_sw_interface_is_link_up()

static uword vnet_sw_interface_is_link_up ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 331 of file interface_funcs.h.

+ 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 1286 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 1271 of file interface.c.

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

◆ vnet_sw_interface_is_up()

static uword vnet_sw_interface_is_up ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 339 of file interface_funcs.h.

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

◆ vnet_sw_interface_is_valid()

static uword vnet_sw_interface_is_valid ( vnet_main_t vnm,
u32  sw_if_index 
)
inlinestatic

Definition at line 252 of file interface_funcs.h.

+ 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 519 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 686 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 701 of file interface.c.

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

◆ vnet_sw_interface_stats_collect_enable_disable()

int vnet_sw_interface_stats_collect_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 25 of file interface_stats.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  sw_if_index,
u32  ip_sw_if_index,
u8  enable 
)

Definition at line 1586 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 1121 of file interface.c.

+ Here is the caller graph for this function:

◆ vnet_swif_is_api_visible()

static uword vnet_swif_is_api_visible ( vnet_sw_interface_t si)
inlinestatic

Definition at line 272 of file interface_funcs.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ format_vnet_hw_if_index_name

format_function_t format_vnet_hw_if_index_name

Definition at line 441 of file interface_funcs.h.

◆ format_vnet_hw_if_rx_mode

format_function_t format_vnet_hw_if_rx_mode

Definition at line 440 of file interface_funcs.h.

◆ format_vnet_hw_interface

format_function_t format_vnet_hw_interface

Definition at line 439 of file interface_funcs.h.

◆ format_vnet_sw_if_index_name

format_function_t format_vnet_sw_if_index_name

Definition at line 445 of file interface_funcs.h.

◆ format_vnet_sw_interface

format_function_t format_vnet_sw_interface

Definition at line 442 of file interface_funcs.h.

◆ format_vnet_sw_interface_flags

format_function_t format_vnet_sw_interface_flags

Definition at line 446 of file interface_funcs.h.

◆ format_vnet_sw_interface_name

format_function_t format_vnet_sw_interface_name

Definition at line 443 of file interface_funcs.h.

◆ format_vnet_sw_interface_name_override

format_function_t format_vnet_sw_interface_name_override

Definition at line 444 of file interface_funcs.h.

◆ format_vtr

format_function_t format_vtr

Definition at line 458 of file interface_funcs.h.

◆ serialize_vnet_interface_state

serialize_function_t serialize_vnet_interface_state

Definition at line 501 of file interface_funcs.h.

◆ unformat_vnet_buffer_flags

unformat_function_t unformat_vnet_buffer_flags

Definition at line 451 of file interface_funcs.h.

◆ unformat_vnet_hw_interface

unformat_function_t unformat_vnet_hw_interface

Definition at line 450 of file interface_funcs.h.

◆ unformat_vnet_hw_interface_flags

unformat_function_t unformat_vnet_hw_interface_flags

Definition at line 454 of file interface_funcs.h.

◆ unformat_vnet_sw_interface

unformat_function_t unformat_vnet_sw_interface

Definition at line 449 of file interface_funcs.h.

◆ unformat_vnet_sw_interface_flags

unformat_function_t unformat_vnet_sw_interface_flags

Definition at line 455 of file interface_funcs.h.

◆ unserialize_vnet_interface_state

serialize_function_t unserialize_vnet_interface_state

Definition at line 501 of file interface_funcs.h.