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

Go to the source code of this file.

Macros

#define RDMA_TX_RETRIES   5
 
#define RDMA_TXQ_DV_DSEG_SZ(txq)   (RDMA_MLX5_WQE_DS * RDMA_TXQ_DV_SQ_SZ(txq))
 
#define RDMA_TXQ_DV_DSEG2WQE(d)   (((d) + RDMA_MLX5_WQE_DS - 1) / RDMA_MLX5_WQE_DS)
 
#define RDMA_MLX5_WQE_DS_MAX   (1 << 5)
 

Functions

static_always_inline void rdma_device_output_free_mlx5 (vlib_main_t *vm, const vlib_node_runtime_t *node, rdma_txq_t *txq)
 
static_always_inline void rdma_device_output_tx_mlx5_doorbell (rdma_txq_t *txq, rdma_mlx5_wqe_t *last, const u16 tail, u32 sq_mask)
 
static_always_inline void rdma_mlx5_wqe_init (rdma_mlx5_wqe_t *wqe, const void *tmpl, vlib_buffer_t *b, const u16 tail)
 
static_always_inline u32 rdma_device_output_tx_mlx5_chained (vlib_main_t *vm, const vlib_node_runtime_t *node, const rdma_device_t *rd, rdma_txq_t *txq, const u32 n_left_from, const u32 *bi, vlib_buffer_t **b, u16 tail)
 
static_always_inline u32 rdma_device_output_tx_mlx5 (vlib_main_t *vm, const vlib_node_runtime_t *node, const rdma_device_t *rd, rdma_txq_t *txq, const u32 n_left_from, const u32 *bi, vlib_buffer_t **b)
 
static_always_inline void rdma_device_output_free_ibverb (vlib_main_t *vm, const vlib_node_runtime_t *node, rdma_txq_t *txq)
 
static_always_inline u32 rdma_device_output_tx_ibverb (vlib_main_t *vm, const vlib_node_runtime_t *node, const rdma_device_t *rd, rdma_txq_t *txq, u32 n_left_from, u32 *bi, vlib_buffer_t **b)
 
static void rdma_device_output_free (vlib_main_t *vm, const vlib_node_runtime_t *node, const rdma_device_t *rd, rdma_txq_t *txq)
 
static u32 rdma_device_output_tx_try (vlib_main_t *vm, const vlib_node_runtime_t *node, const rdma_device_t *rd, rdma_txq_t *txq, u32 n_left_from, u32 *bi)
 
static uword rdma_device_output_tx (vlib_main_t *vm, vlib_node_runtime_t *node, rdma_device_t *rd, rdma_txq_t *txq, u32 *from, u32 n_left_from)
 
VNET_DEVICE_CLASS_TX_FN() rdma_device_class (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Macro Definition Documentation

◆ RDMA_MLX5_WQE_DS_MAX

#define RDMA_MLX5_WQE_DS_MAX   (1 << 5)

◆ RDMA_TX_RETRIES

#define RDMA_TX_RETRIES   5

Definition at line 26 of file output.c.

◆ RDMA_TXQ_DV_DSEG2WQE

#define RDMA_TXQ_DV_DSEG2WQE (   d)    (((d) + RDMA_MLX5_WQE_DS - 1) / RDMA_MLX5_WQE_DS)

Definition at line 29 of file output.c.

◆ RDMA_TXQ_DV_DSEG_SZ

#define RDMA_TXQ_DV_DSEG_SZ (   txq)    (RDMA_MLX5_WQE_DS * RDMA_TXQ_DV_SQ_SZ(txq))

Definition at line 28 of file output.c.

Function Documentation

◆ rdma_device_class()

VNET_DEVICE_CLASS_TX_FN() rdma_device_class ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 543 of file output.c.

+ Here is the call graph for this function:

◆ rdma_device_output_free()

static void rdma_device_output_free ( vlib_main_t vm,
const vlib_node_runtime_t node,
const rdma_device_t rd,
rdma_txq_t txq 
)
static

Definition at line 484 of file output.c.

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

◆ rdma_device_output_free_ibverb()

static_always_inline void rdma_device_output_free_ibverb ( vlib_main_t vm,
const vlib_node_runtime_t node,
rdma_txq_t txq 
)

Definition at line 352 of file output.c.

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

◆ rdma_device_output_free_mlx5()

static_always_inline void rdma_device_output_free_mlx5 ( vlib_main_t vm,
const vlib_node_runtime_t node,
rdma_txq_t txq 
)

Definition at line 36 of file output.c.

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

◆ rdma_device_output_tx()

static uword rdma_device_output_tx ( vlib_main_t vm,
vlib_node_runtime_t node,
rdma_device_t rd,
rdma_txq_t txq,
u32 from,
u32  n_left_from 
)
static

Definition at line 525 of file output.c.

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

◆ rdma_device_output_tx_ibverb()

static_always_inline u32 rdma_device_output_tx_ibverb ( vlib_main_t vm,
const vlib_node_runtime_t node,
const rdma_device_t rd,
rdma_txq_t txq,
u32  n_left_from,
u32 bi,
vlib_buffer_t **  b 
)

Definition at line 385 of file output.c.

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

◆ rdma_device_output_tx_mlx5()

static_always_inline u32 rdma_device_output_tx_mlx5 ( vlib_main_t vm,
const vlib_node_runtime_t node,
const rdma_device_t rd,
rdma_txq_t txq,
const u32  n_left_from,
const u32 bi,
vlib_buffer_t **  b 
)

Definition at line 275 of file output.c.

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

◆ rdma_device_output_tx_mlx5_chained()

static_always_inline u32 rdma_device_output_tx_mlx5_chained ( vlib_main_t vm,
const vlib_node_runtime_t node,
const rdma_device_t rd,
rdma_txq_t txq,
const u32  n_left_from,
const u32 bi,
vlib_buffer_t **  b,
u16  tail 
)

Definition at line 146 of file output.c.

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

◆ rdma_device_output_tx_mlx5_doorbell()

static_always_inline void rdma_device_output_tx_mlx5_doorbell ( rdma_txq_t txq,
rdma_mlx5_wqe_t last,
const u16  tail,
u32  sq_mask 
)

Definition at line 90 of file output.c.

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

◆ rdma_device_output_tx_try()

static u32 rdma_device_output_tx_try ( vlib_main_t vm,
const vlib_node_runtime_t node,
const rdma_device_t rd,
rdma_txq_t txq,
u32  n_left_from,
u32 bi 
)
static

Definition at line 494 of file output.c.

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

◆ rdma_mlx5_wqe_init()

static_always_inline void rdma_mlx5_wqe_init ( rdma_mlx5_wqe_t wqe,
const void *  tmpl,
vlib_buffer_t b,
const u16  tail 
)

Definition at line 107 of file output.c.

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