|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 #include <sys/ioctl.h>
49 .path =
"create interface rdma",
50 .short_help =
"create interface rdma <host-if ifname> [name <name>]"
51 " [rx-queue-size <size>] [tx-queue-size <size>]"
52 " [num-rx-queues <size>] [mode <auto|ibv|dv]"
53 " [no-multi-seg] [no-striding]"
54 " [max-pktlen <size>]",
89 "please specify interface name or sw_if_index");
104 .path =
"delete interface rdma",
105 .short_help =
"delete interface rdma "
106 "{<interface> | sw_if_index <sw_idx>}",
142 "please specify interface name or sw_if_index");
150 if ((rd->
flags & RDMA_DEVICE_F_MLX5DV) == 0)
167 .path =
"test rdma dump",
168 .short_help =
"test rdma dump {<interface> | sw_if_index <sw_idx>}",
unformat_function_t unformat_rdma_create_if_args
void rdma_create_if(vlib_main_t *vm, rdma_create_if_args_t *args)
void rdma_delete_if(vlib_main_t *vm, rdma_device_t *rd)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
vnet_device_class_t rdma_device_class
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static vlib_cli_command_t test_rdma_mlx5dv_dump_command
(constructor) VLIB_CLI_COMMAND (test_rdma_mlx5dv_dump_command)
static clib_error_t * rdma_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_pci_device_info_t * pci
vnet_main_t * vnet_get_main(void)
static vnet_hw_interface_t * vnet_get_sup_hw_interface_api_visible_or_null(vnet_main_t *vnm, u32 sw_if_index)
#define vec_foreach_index(var, v)
Iterate over vector indices.
sll srl srl sll sra u16x4 i
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
#define vec_free(V)
Free vector's memory (no header).
static vlib_cli_command_t rdma_create_command
(constructor) VLIB_CLI_COMMAND (rdma_create_command)
format_function_t format_vlib_pci_addr
format_function_t format_rdma_rxq
unformat_function_t unformat_vnet_sw_interface
#define VLIB_INIT_FUNCTION(x)
static clib_error_t * test_rdma_dump_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
clib_error_t * rdma_cli_init(vlib_main_t *vm)
vl_api_interface_index_t sw_if_index
static vlib_cli_command_t rdma_delete_command
(constructor) VLIB_CLI_COMMAND (rdma_delete_command)
static clib_error_t * rdma_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)