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

Go to the source code of this file.

Macros

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

Functions

 VLIB_REGISTER_LOG_CLASS (if_txq_log, static)
 
static u64 tx_queue_key (u32 hw_if_index, u32 queue_id)
 
u32 vnet_hw_if_get_tx_queue_index_by_id (vnet_main_t *vnm, u32 hw_if_index, u32 queue_id)
 
u32 vnet_hw_if_register_tx_queue (vnet_main_t *vnm, u32 hw_if_index, u32 queue_id)
 
void vnet_hw_if_unregister_tx_queue (vnet_main_t *vnm, u32 queue_index)
 
void vnet_hw_if_unregister_all_tx_queues (vnet_main_t *vnm, u32 hw_if_index)
 
void vnet_hw_if_tx_queue_assign_thread (vnet_main_t *vnm, u32 queue_index, u32 thread_index)
 
void vnet_hw_if_tx_queue_unassign_thread (vnet_main_t *vnm, u32 queue_index, u32 thread_index)
 

Macro Definition Documentation

◆ log_debug

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

Definition at line 15 of file tx_queue.c.

◆ log_err

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

Definition at line 16 of file tx_queue.c.

Function Documentation

◆ tx_queue_key()

static u64 tx_queue_key ( u32  hw_if_index,
u32  queue_id 
)
static

Definition at line 19 of file tx_queue.c.

+ Here is the caller graph for this function:

◆ VLIB_REGISTER_LOG_CLASS()

VLIB_REGISTER_LOG_CLASS ( if_txq_log  ,
static   
)

◆ vnet_hw_if_get_tx_queue_index_by_id()

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

Definition at line 25 of file tx_queue.c.

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

◆ vnet_hw_if_register_tx_queue()

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

Definition at line 35 of file tx_queue.c.

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

◆ vnet_hw_if_tx_queue_assign_thread()

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

Definition at line 109 of file tx_queue.c.

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

◆ vnet_hw_if_tx_queue_unassign_thread()

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

Definition at line 124 of file tx_queue.c.

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

◆ vnet_hw_if_unregister_all_tx_queues()

void vnet_hw_if_unregister_all_tx_queues ( vnet_main_t vnm,
u32  hw_if_index 
)

Definition at line 86 of file tx_queue.c.

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

◆ vnet_hw_if_unregister_tx_queue()

void vnet_hw_if_unregister_tx_queue ( vnet_main_t vnm,
u32  queue_index 
)

Definition at line 62 of file tx_queue.c.

+ Here is the call graph for this function: