19 #include <sys/ioctl.h> 70 .path =
"create interface rdma",
71 .short_help =
"create interface rdma <host-if ifname> [name <name>]" 72 " [rx-queue-size <size>] [tx-queue-size <size>]" 73 " [num-rx-queues <size>]",
95 if (
unformat (line_input,
"sw_if_index %d", &sw_if_index))
106 if (sw_if_index == ~0)
108 "please specify interface name or sw_if_index");
123 .path =
"delete interface rdma",
124 .short_help =
"delete interface rdma " 125 "{<interface> | sw_if_index <sw_idx>}",
vnet_main_t * vnet_get_main(void)
static vnet_hw_interface_t * vnet_get_sup_hw_interface(vnet_main_t *vnm, u32 sw_if_index)
clib_memset(h->entries, 0, sizeof(h->entries[0])*entries)
unformat_function_t unformat_vnet_sw_interface
static clib_error_t * rdma_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_INIT_FUNCTION(x)
static clib_error_t * rdma_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define clib_error_return(e, args...)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
clib_error_t * rdma_cli_init(vlib_main_t *vm)
#define vec_free(V)
Free vector's memory (no header).
void rdma_create_if(vlib_main_t *vm, rdma_create_if_args_t *args)
#define VLIB_CLI_COMMAND(x,...)
vnet_device_class_t rdma_device_class
void rdma_delete_if(vlib_main_t *vm, rdma_device_t *rd)