FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
rx_queue.c File Reference
+ Include dependency graph for rx_queue.c:

Go to the source code of this file.

Macros

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

Functions

 VLIB_REGISTER_LOG_CLASS (if_rxq_log, static)
 
static u32 next_thread_index (vnet_main_t *vnm, u32 thread_index)
 
static u64 rx_queue_key (u32 hw_if_index, u32 queue_id)
 
u32 vnet_hw_if_get_rx_queue_index_by_id (vnet_main_t *vnm, u32 hw_if_index, u32 queue_id)
 
u32 vnet_hw_if_register_rx_queue (vnet_main_t *vnm, u32 hw_if_index, u32 queue_id, u32 thread_index)
 
void vnet_hw_if_unregister_rx_queue (vnet_main_t *vnm, u32 queue_index)
 
void vnet_hw_if_unregister_all_rx_queues (vnet_main_t *vnm, u32 hw_if_index)
 
void vnet_hw_if_set_rx_queue_file_index (vnet_main_t *vnm, u32 queue_index, u32 file_index)
 
void vnet_hw_if_set_input_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
int vnet_hw_if_set_rx_queue_mode (vnet_main_t *vnm, u32 queue_index, vnet_hw_if_rx_mode mode)
 
vnet_hw_if_rx_mode vnet_hw_if_get_rx_queue_mode (vnet_main_t *vnm, u32 queue_index)
 
void vnet_hw_if_set_rx_queue_thread_index (vnet_main_t *vnm, u32 queue_index, u32 thread_index)
 
vnet_hw_if_rxq_poll_vector_tvnet_hw_if_generate_rxq_int_poll_vector (vlib_main_t *vm, vlib_node_runtime_t *node)
 

Macro Definition Documentation

◆ log_debug

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

Definition at line 26 of file rx_queue.c.

◆ log_err

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

Definition at line 27 of file rx_queue.c.

Function Documentation

◆ next_thread_index()

static u32 next_thread_index ( vnet_main_t vnm,
u32  thread_index 
)
static

Definition at line 30 of file rx_queue.c.

+ Here is the caller graph for this function:

◆ rx_queue_key()

static u64 rx_queue_key ( u32  hw_if_index,
u32  queue_id 
)
static

Definition at line 48 of file rx_queue.c.

+ Here is the caller graph for this function:

◆ VLIB_REGISTER_LOG_CLASS()

VLIB_REGISTER_LOG_CLASS ( if_rxq_log  ,
static   
)

◆ vnet_hw_if_generate_rxq_int_poll_vector()

vnet_hw_if_rxq_poll_vector_t* vnet_hw_if_generate_rxq_int_poll_vector ( vlib_main_t vm,
vlib_node_runtime_t node 
)

Definition at line 232 of file rx_queue.c.

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

◆ vnet_hw_if_get_rx_queue_index_by_id()

u32 vnet_hw_if_get_rx_queue_index_by_id ( vnet_main_t vnm,
u32  hw_if_index,
u32  queue_id 
)

Definition at line 54 of file rx_queue.c.

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

◆ vnet_hw_if_get_rx_queue_mode()

vnet_hw_if_rx_mode vnet_hw_if_get_rx_queue_mode ( vnet_main_t vnm,
u32  queue_index 
)

Definition at line 208 of file rx_queue.c.

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

◆ vnet_hw_if_register_rx_queue()

u32 vnet_hw_if_register_rx_queue ( vnet_main_t vnm,
u32  hw_if_index,
u32  queue_id,
u32  thread_index 
)

Definition at line 64 of file rx_queue.c.

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

◆ vnet_hw_if_set_input_node()

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

Definition at line 157 of file rx_queue.c.

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

◆ vnet_hw_if_set_rx_queue_file_index()

void vnet_hw_if_set_rx_queue_file_index ( vnet_main_t vnm,
u32  queue_index,
u32  file_index 
)

Definition at line 144 of file rx_queue.c.

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

◆ vnet_hw_if_set_rx_queue_mode()

int vnet_hw_if_set_rx_queue_mode ( vnet_main_t vnm,
u32  queue_index,
vnet_hw_if_rx_mode  mode 
)

Definition at line 167 of file rx_queue.c.

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

◆ vnet_hw_if_set_rx_queue_thread_index()

void vnet_hw_if_set_rx_queue_thread_index ( vnet_main_t vnm,
u32  queue_index,
u32  thread_index 
)

Definition at line 215 of file rx_queue.c.

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

◆ vnet_hw_if_unregister_all_rx_queues()

void vnet_hw_if_unregister_all_rx_queues ( vnet_main_t vnm,
u32  hw_if_index 
)

Definition at line 122 of file rx_queue.c.

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

◆ vnet_hw_if_unregister_rx_queue()

void vnet_hw_if_unregister_rx_queue ( vnet_main_t vnm,
u32  queue_index 
)

Definition at line 99 of file rx_queue.c.

+ Here is the call graph for this function: