FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
interface_cli.c File Reference

Interface CLI. More...

+ Include dependency graph for interface_cli.c:

Go to the source code of this file.

Functions

static int compare_interface_names (void *a1, void *a2)
 
static clib_error_tshow_or_clear_hw_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd, int is_show)
 
static clib_error_tshow_hw_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_hw_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int sw_interface_name_compare (void *a1, void *a2)
 
static clib_error_tshow_sw_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_interface_counters (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tparse_vlan_sub_interfaces (unformat_input_t *input, vnet_sw_interface_t *template)
 Parse subinterface names. More...
 
static clib_error_tcreate_sub_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_state (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_unnumbered (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_hw_class (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tvnet_interface_cli_init (vlib_main_t *vm)
 
static clib_error_trenumber_interface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tpromiscuous_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmtu_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_interface_sec_mac_addr_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tinterface_add_del_mac_address (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_interface_mac_address (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_tag (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_tag (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_ip_directed_broadcast (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tset_hw_interface_change_rx_mode (vnet_main_t *vnm, u32 hw_if_index, u8 queue_id_valid, u32 queue_id, vnet_hw_if_rx_mode mode)
 
static clib_error_tset_interface_rx_mode (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_interface_rx_placement_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tset_hw_interface_rx_placement (u32 hw_if_index, u32 queue_id, u32 thread_index, u8 is_main)
 
static clib_error_tset_interface_rx_placement (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tset_hw_interface_tx_queue (u32 hw_if_index, u32 queue_id, uword *bitmap)
 
static clib_error_tset_interface_tx_queue (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tset_interface_rss_queues (vlib_main_t *vm, u32 hw_if_index, clib_bitmap_t *bitmap)
 
static clib_error_tset_interface_rss_queues_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_vnet_pcap (u8 *s, va_list *args)
 
int vnet_pcap_dispatch_trace_configure (vnet_pcap_dispatch_trace_args_t *a)
 
static clib_error_tpcap_trace_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_interface_name (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t show_hw_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_hw_interfaces_command) More...
 
static vlib_cli_command_t clear_hw_interface_counters_command
 (constructor) VLIB_CLI_COMMAND (clear_hw_interface_counters_command) More...
 
static vlib_cli_command_t show_sw_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_sw_interfaces_command) More...
 
static vlib_cli_command_t vnet_cli_interface_command
 (constructor) VLIB_CLI_COMMAND (vnet_cli_interface_command) More...
 
static vlib_cli_command_t vnet_cli_set_interface_command
 (constructor) VLIB_CLI_COMMAND (vnet_cli_set_interface_command) More...
 
static vlib_cli_command_t clear_interface_counters_command
 (constructor) VLIB_CLI_COMMAND (clear_interface_counters_command) More...
 
static vlib_cli_command_t create_sub_interfaces_command
 (constructor) VLIB_CLI_COMMAND (create_sub_interfaces_command) More...
 
static vlib_cli_command_t set_state_command
 (constructor) VLIB_CLI_COMMAND (set_state_command) More...
 
static vlib_cli_command_t set_unnumbered_command
 (constructor) VLIB_CLI_COMMAND (set_unnumbered_command) More...
 
static vlib_cli_command_t set_hw_class_command
 (constructor) VLIB_CLI_COMMAND (set_hw_class_command) More...
 
static vlib_cli_command_t renumber_interface_command
 (constructor) VLIB_CLI_COMMAND (renumber_interface_command) More...
 
static vlib_cli_command_t set_interface_promiscuous_cmd
 (constructor) VLIB_CLI_COMMAND (set_interface_promiscuous_cmd) More...
 
static vlib_cli_command_t set_interface_mtu_cmd
 (constructor) VLIB_CLI_COMMAND (set_interface_mtu_cmd) More...
 
static vlib_cli_command_t show_interface_sec_mac_addr
 (constructor) VLIB_CLI_COMMAND (show_interface_sec_mac_addr) More...
 
static vlib_cli_command_t interface_add_del_mac_address_cmd
 (constructor) VLIB_CLI_COMMAND (interface_add_del_mac_address_cmd) More...
 
static vlib_cli_command_t set_interface_mac_address_cmd
 (constructor) VLIB_CLI_COMMAND (set_interface_mac_address_cmd) More...
 
static vlib_cli_command_t set_tag_command
 (constructor) VLIB_CLI_COMMAND (set_tag_command) More...
 
static vlib_cli_command_t clear_tag_command
 (constructor) VLIB_CLI_COMMAND (clear_tag_command) More...
 
static vlib_cli_command_t set_ip_directed_broadcast_command
 (constructor) VLIB_CLI_COMMAND (set_ip_directed_broadcast_command) More...
 
static vlib_cli_command_t cmd_set_if_rx_mode
 (constructor) VLIB_CLI_COMMAND (cmd_set_if_rx_mode) More...
 
static vlib_cli_command_t show_interface_rx_placement
 (constructor) VLIB_CLI_COMMAND (show_interface_rx_placement) More...
 
static vlib_cli_command_t cmd_set_if_rx_placement
 (constructor) VLIB_CLI_COMMAND (cmd_set_if_rx_placement) More...
 
static vlib_cli_command_t cmd_set_if_tx_queue
 (constructor) VLIB_CLI_COMMAND (cmd_set_if_tx_queue) More...
 
static vlib_cli_command_t cmd_set_interface_rss_queues
 (constructor) VLIB_CLI_COMMAND (cmd_set_interface_rss_queues) More...
 
static vlib_cli_command_t pcap_tx_trace_command
 (constructor) VLIB_CLI_COMMAND (pcap_tx_trace_command) More...
 
static vlib_cli_command_t cmd_set_if_name
 (constructor) VLIB_CLI_COMMAND (cmd_set_if_name) More...
 

Detailed Description

Interface CLI.

Source code for several CLI interface commands.

Definition in file interface_cli.c.

Function Documentation

◆ clear_hw_interfaces()

static clib_error_t* clear_hw_interfaces ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 178 of file interface_cli.c.

+ Here is the call graph for this function:

◆ clear_interface_counters()

static clib_error_t* clear_interface_counters ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 533 of file interface_cli.c.

+ Here is the call graph for this function:

◆ clear_tag()

static clib_error_t* clear_tag ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1444 of file interface_cli.c.

+ Here is the call graph for this function:

◆ compare_interface_names()

static int compare_interface_names ( void *  a1,
void *  a2 
)
static

Definition at line 57 of file interface_cli.c.

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

◆ create_sub_interfaces()

static clib_error_t* create_sub_interfaces ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 696 of file interface_cli.c.

+ Here is the call graph for this function:

◆ format_vnet_pcap()

static u8* format_vnet_pcap ( u8 s,
va_list *  args 
)
static

Definition at line 2021 of file interface_cli.c.

+ Here is the caller graph for this function:

◆ interface_add_del_mac_address()

static clib_error_t* interface_add_del_mac_address ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1295 of file interface_cli.c.

+ Here is the call graph for this function:

◆ mtu_cmd()

static clib_error_t* mtu_cmd ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1153 of file interface_cli.c.

+ Here is the call graph for this function:

◆ parse_vlan_sub_interfaces()

static clib_error_t* parse_vlan_sub_interfaces ( unformat_input_t input,
vnet_sw_interface_t template 
)
static

Parse subinterface names.

The following subinterface syntax is supported. The first two are for backwards compatability:

<intf-name> <id>

  • a subinterface with the name <intf-name>.<id>. The subinterface is a single dot1q vlan with vlan id <id> and exact-match semantics.

<intf-name> <min_id>-<max_id>

  • a set of the above subinterfaces, repeating for each id in the range <min_id> to <max_id>

In the following, exact-match semantics (i.e. the number of vlan tags on the packet must match the number of tags in the configuration) are used only if the keyword exact-match is present. Non-exact match is the default.

<intf-name> <id> dot1q <outer_id> [exact-match]

  • a subinterface with the name <intf-name>.<id>. The subinterface is a single dot1q vlan with vlan id <outer_id>.

<intf-name> <id> dot1q any [exact-match]

  • a subinterface with the name <intf-name>.<id>. The subinterface is a single dot1q vlan with any vlan id.

<intf-name> <id> dot1q <outer_id> inner-dot1q <inner_id> [exact-match]

  • a subinterface with the name <intf-name>.<id>. The subinterface is a double dot1q vlan with outer vlan id <outer_id> and inner vlan id <inner_id>.

<intf-name> <id> dot1q <outer_id> inner-dot1q any [exact-match]

  • a subinterface with the name <intf-name>.<id>. The subinterface is a double dot1q vlan with outer vlan id <id> and any inner vlan id.

<intf-name> <id> dot1q any inner-dot1q any [exact-match]

- a subinterface with the name <intf-name>.<id>. The subinterface
  is a double dot1q vlan with any outer vlan id and any inner vlan id.

For each of the above CLI, there is a duplicate that uses the keyword "dot1ad" in place of the first "dot1q". These interfaces use ethertype 0x88ad in place of 0x8100 for the outer ethertype. Note that for double- tagged packets the inner ethertype is always 0x8100. Also note that the dot1q and dot1ad naming spaces are independent, so it is legal to have both "Gig3/0/0.1 dot1q 100" and "Gig3/0/0.2 dot1ad 100". For example:

<intf-name> <id> dot1ad <outer_id> inner-dot1q <inner_id> [exact-match]

  • a subinterface with the name <intf-name>.<id>. The subinterface is a double dot1ad vlan with outer vlan id <outer_id> and inner vlan id <inner_id>.

<intf-name> <id> untagged

  • a subinterface with the name <intf-name>.<id>. The subinterface has no vlan tags. Only one can be specified per interface.

<intf-name> <id> default

  • a subinterface with the name <intf-name>.<id>. This is associated with a packet that did not match any other configured subinterface on this interface. Only one can be specified per interface.

Definition at line 642 of file interface_cli.c.

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

◆ pcap_trace_command_fn()

static clib_error_t* pcap_trace_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2204 of file interface_cli.c.

+ Here is the call graph for this function:

◆ promiscuous_cmd()

static clib_error_t* promiscuous_cmd ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1117 of file interface_cli.c.

+ Here is the call graph for this function:

◆ renumber_interface_command_fn()

static clib_error_t* renumber_interface_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1075 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_hw_class()

static clib_error_t* set_hw_class ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1026 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_hw_interface_change_rx_mode()

clib_error_t* set_hw_interface_change_rx_mode ( vnet_main_t vnm,
u32  hw_if_index,
u8  queue_id_valid,
u32  queue_id,
vnet_hw_if_rx_mode  mode 
)

Definition at line 1508 of file interface_cli.c.

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

◆ set_hw_interface_rx_placement()

clib_error_t* set_hw_interface_rx_placement ( u32  hw_if_index,
u32  queue_id,
u32  thread_index,
u8  is_main 
)

Definition at line 1709 of file interface_cli.c.

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

◆ set_hw_interface_tx_queue()

clib_error_t* set_hw_interface_tx_queue ( u32  hw_if_index,
u32  queue_id,
uword bitmap 
)

Definition at line 1843 of file interface_cli.c.

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

◆ set_interface_mac_address()

static clib_error_t* set_interface_mac_address ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1369 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_interface_name()

static clib_error_t* set_interface_name ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2421 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_interface_rss_queues()

clib_error_t* set_interface_rss_queues ( vlib_main_t vm,
u32  hw_if_index,
clib_bitmap_t bitmap 
)

Definition at line 1938 of file interface_cli.c.

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

◆ set_interface_rss_queues_fn()

static clib_error_t* set_interface_rss_queues_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1948 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_interface_rx_mode()

static clib_error_t* set_interface_rx_mode ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1546 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_interface_rx_placement()

static clib_error_t* set_interface_rx_placement ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1739 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_interface_tx_queue()

static clib_error_t* set_interface_tx_queue ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1882 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_ip_directed_broadcast()

static clib_error_t* set_ip_directed_broadcast ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1468 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_state()

static clib_error_t* set_state ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 914 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_tag()

static clib_error_t* set_tag ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1419 of file interface_cli.c.

+ Here is the call graph for this function:

◆ set_unnumbered()

static clib_error_t* set_unnumbered ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 968 of file interface_cli.c.

+ Here is the call graph for this function:

◆ show_hw_interfaces()

static clib_error_t* show_hw_interfaces ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 171 of file interface_cli.c.

+ Here is the call graph for this function:

◆ show_interface_rx_placement_fn()

static clib_error_t* show_interface_rx_placement_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1638 of file interface_cli.c.

+ Here is the call graph for this function:

◆ show_interface_sec_mac_addr_fn()

static clib_error_t* show_interface_sec_mac_addr_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1217 of file interface_cli.c.

+ Here is the call graph for this function:

◆ show_or_clear_hw_interfaces()

static clib_error_t* show_or_clear_hw_interfaces ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd,
int  is_show 
)
static

Definition at line 66 of file interface_cli.c.

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

◆ show_sw_interfaces()

static clib_error_t* show_sw_interfaces ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 282 of file interface_cli.c.

+ Here is the call graph for this function:

◆ sw_interface_name_compare()

static int sw_interface_name_compare ( void *  a1,
void *  a2 
)
static

Definition at line 272 of file interface_cli.c.

+ Here is the call graph for this function:

◆ vnet_interface_cli_init()

static clib_error_t* vnet_interface_cli_init ( vlib_main_t vm)
static

Definition at line 1067 of file interface_cli.c.

+ Here is the caller graph for this function:

◆ vnet_pcap_dispatch_trace_configure()

int vnet_pcap_dispatch_trace_configure ( vnet_pcap_dispatch_trace_args_t a)

Definition at line 2056 of file interface_cli.c.

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

Variable Documentation

◆ clear_hw_interface_counters_command

vlib_cli_command_t clear_hw_interface_counters_command
static
Initial value:
= {
.path = "clear hardware-interfaces",
.short_help = "clear hardware-interfaces "
"[<interface> [<interface> [..]]] [<sw_idx> [<sw_idx> [..]]]",
.function = clear_hw_interfaces,
}

(constructor) VLIB_CLI_COMMAND (clear_hw_interface_counters_command)

Definition at line 263 of file interface_cli.c.

◆ clear_interface_counters_command

vlib_cli_command_t clear_interface_counters_command
static
Initial value:
= {
.path = "clear interfaces",
.short_help = "clear interfaces",
}

(constructor) VLIB_CLI_COMMAND (clear_interface_counters_command)

Definition at line 572 of file interface_cli.c.

◆ clear_tag_command

vlib_cli_command_t clear_tag_command
static
Initial value:
= {
.path = "clear interface tag",
.short_help = "clear interface tag <interface>",
.function = clear_tag,
}

(constructor) VLIB_CLI_COMMAND (clear_tag_command)

Definition at line 1460 of file interface_cli.c.

◆ cmd_set_if_name

vlib_cli_command_t cmd_set_if_name
static
Initial value:
= {
.path = "set interface name",
.short_help = "set interface name <interface-name> <new-interface-name>",
.function = set_interface_name,
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (cmd_set_if_name)

Definition at line 2463 of file interface_cli.c.

◆ cmd_set_if_rx_mode

vlib_cli_command_t cmd_set_if_rx_mode
static
Initial value:
= {
.path = "set interface rx-mode",
.short_help = "set interface rx-mode <interface> [queue <n>] [polling | interrupt | adaptive]",
.function = set_interface_rx_mode,
}

(constructor) VLIB_CLI_COMMAND (cmd_set_if_rx_mode)

Definition at line 1630 of file interface_cli.c.

◆ cmd_set_if_rx_placement

vlib_cli_command_t cmd_set_if_rx_placement
static
Initial value:
= {
.path = "set interface rx-placement",
.short_help = "set interface rx-placement <interface> [queue <n>] "
"[worker <n> | main]",
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (cmd_set_if_rx_placement)

Definition at line 1833 of file interface_cli.c.

◆ cmd_set_if_tx_queue

vlib_cli_command_t cmd_set_if_tx_queue
static
Initial value:
= {
.path = "set interface tx-queue",
.short_help = "set interface tx-queue <interface> queue <n> "
"[threads <list>]",
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (cmd_set_if_tx_queue)

Definition at line 1929 of file interface_cli.c.

◆ cmd_set_interface_rss_queues

vlib_cli_command_t cmd_set_interface_rss_queues
static
Initial value:
= {
.path = "set interface rss queues",
.short_help = "set interface rss queues <interface> <list <queue-list>>",
}

(constructor) VLIB_CLI_COMMAND (cmd_set_interface_rss_queues)

Definition at line 2013 of file interface_cli.c.

◆ create_sub_interfaces_command

vlib_cli_command_t create_sub_interfaces_command
static
Initial value:
= {
.path = "create sub-interfaces",
.short_help = "create sub-interfaces <interface> "
"{<subId> [default|untagged]} | "
"{<subId>-<subId>} | "
"{<subId> dot1q|dot1ad <vlanId>|any [inner-dot1q <vlanId>|any] [exact-match]}",
.function = create_sub_interfaces,
}

(constructor) VLIB_CLI_COMMAND (create_sub_interfaces_command)

Definition at line 903 of file interface_cli.c.

◆ interface_add_del_mac_address_cmd

vlib_cli_command_t interface_add_del_mac_address_cmd
static
Initial value:
= {
.path = "set interface secondary-mac-address",
.short_help = "set interface secondary-mac-address <interface> <mac-address> [(add|del)]",
}

(constructor) VLIB_CLI_COMMAND (interface_add_del_mac_address_cmd)

Definition at line 1361 of file interface_cli.c.

◆ pcap_tx_trace_command

vlib_cli_command_t pcap_tx_trace_command
static
Initial value:
= {
.path = "pcap trace",
.short_help =
"pcap trace [rx] [tx] [drop] [off] [max <nn>] [intfc <interface>|any]\n"
" [file <name>] [status] [max-bytes-per-pkt <nnnn>][filter]\n"
" [preallocate-data][free-data]",
.function = pcap_trace_command_fn,
}

(constructor) VLIB_CLI_COMMAND (pcap_tx_trace_command)

Definition at line 2410 of file interface_cli.c.

◆ renumber_interface_command

vlib_cli_command_t renumber_interface_command
static
Initial value:
= {
.path = "renumber interface",
.short_help = "renumber interface <interface> <new-dev-instance>",
}

(constructor) VLIB_CLI_COMMAND (renumber_interface_command)

Definition at line 1109 of file interface_cli.c.

◆ set_hw_class_command

vlib_cli_command_t set_hw_class_command
static
Initial value:
= {
.path = "set interface hw-class",
.short_help = "Set interface hardware class",
.function = set_hw_class,
}

(constructor) VLIB_CLI_COMMAND (set_hw_class_command)

Definition at line 1059 of file interface_cli.c.

◆ set_interface_mac_address_cmd

vlib_cli_command_t set_interface_mac_address_cmd
static
Initial value:
= {
.path = "set interface mac address",
.short_help = "set interface mac address <interface> <mac-address>",
}

(constructor) VLIB_CLI_COMMAND (set_interface_mac_address_cmd)

Definition at line 1411 of file interface_cli.c.

◆ set_interface_mtu_cmd

vlib_cli_command_t set_interface_mtu_cmd
static
Initial value:
= {
.path = "set interface mtu",
.short_help = "set interface mtu [packet|ip4|ip6|mpls] <value> <interface>",
.function = mtu_cmd,
}

(constructor) VLIB_CLI_COMMAND (set_interface_mtu_cmd)

Definition at line 1209 of file interface_cli.c.

◆ set_interface_promiscuous_cmd

vlib_cli_command_t set_interface_promiscuous_cmd
static
Initial value:
= {
.path = "set interface promiscuous",
.short_help = "set interface promiscuous [on|off] <interface>",
.function = promiscuous_cmd,
}

(constructor) VLIB_CLI_COMMAND (set_interface_promiscuous_cmd)

Definition at line 1145 of file interface_cli.c.

◆ set_ip_directed_broadcast_command

vlib_cli_command_t set_ip_directed_broadcast_command
static
Initial value:
= {
.path = "set interface ip directed-broadcast",
.short_help = "set interface enable <interface> <enable|disable>",
}

(constructor) VLIB_CLI_COMMAND (set_ip_directed_broadcast_command)

Definition at line 1500 of file interface_cli.c.

◆ set_state_command

vlib_cli_command_t set_state_command
static
Initial value:
= {
.path = "set interface state",
.short_help = "set interface state <interface> [up|down|punt|enable]",
.function = set_state,
}

(constructor) VLIB_CLI_COMMAND (set_state_command)

Definition at line 960 of file interface_cli.c.

◆ set_tag_command

vlib_cli_command_t set_tag_command
static
Initial value:
= {
.path = "set interface tag",
.short_help = "set interface tag <interface> <tag>",
.function = set_tag,
}

(constructor) VLIB_CLI_COMMAND (set_tag_command)

Definition at line 1436 of file interface_cli.c.

◆ set_unnumbered_command

vlib_cli_command_t set_unnumbered_command
static
Initial value:
= {
.path = "set interface unnumbered",
.short_help = "set interface unnumbered [<interface> use <interface> | del <interface>]",
.function = set_unnumbered,
}

(constructor) VLIB_CLI_COMMAND (set_unnumbered_command)

Definition at line 1016 of file interface_cli.c.

◆ show_hw_interfaces_command

vlib_cli_command_t show_hw_interfaces_command
static
Initial value:
= {
.path = "show hardware-interfaces",
.short_help = "show hardware-interfaces [brief|verbose|detail] [bond] "
"[<interface> [<interface> [..]]] [<sw_idx> [<sw_idx> [..]]]",
.function = show_hw_interfaces,
}

(constructor) VLIB_CLI_COMMAND (show_hw_interfaces_command)

Definition at line 242 of file interface_cli.c.

◆ show_interface_rx_placement

vlib_cli_command_t show_interface_rx_placement
static
Initial value:
= {
.path = "show interface rx-placement",
.short_help = "show interface rx-placement",
}

(constructor) VLIB_CLI_COMMAND (show_interface_rx_placement)

Definition at line 1702 of file interface_cli.c.

◆ show_interface_sec_mac_addr

vlib_cli_command_t show_interface_sec_mac_addr
static
Initial value:
= {
.path = "show interface secondary-mac-address",
.short_help = "show interface secondary-mac-address [<interface>]",
}

(constructor) VLIB_CLI_COMMAND (show_interface_sec_mac_addr)

Definition at line 1287 of file interface_cli.c.

◆ show_sw_interfaces_command

vlib_cli_command_t show_sw_interfaces_command
static
Initial value:
= {
.path = "show interface",
.short_help = "show interface [address|addr|features|feat|vtr] [<interface> [<interface> [..]]] [verbose]",
.function = show_sw_interfaces,
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (show_sw_interfaces_command)

Definition at line 509 of file interface_cli.c.

◆ vnet_cli_interface_command

vlib_cli_command_t vnet_cli_interface_command
static
Initial value:
= {
.path = "interface",
.short_help = "Interface commands",
}

(constructor) VLIB_CLI_COMMAND (vnet_cli_interface_command)

Definition at line 519 of file interface_cli.c.

◆ vnet_cli_set_interface_command

vlib_cli_command_t vnet_cli_set_interface_command
static
Initial value:
= {
.path = "set interface",
.short_help = "Interface commands",
}

(constructor) VLIB_CLI_COMMAND (vnet_cli_set_interface_command)

Definition at line 526 of file interface_cli.c.

show_interface_sec_mac_addr_fn
static clib_error_t * show_interface_sec_mac_addr_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1217
set_interface_tx_queue
static clib_error_t * set_interface_tx_queue(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1882
show_interface_rx_placement_fn
static clib_error_t * show_interface_rx_placement_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1638
renumber_interface_command_fn
static clib_error_t * renumber_interface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1075
clear_tag
static clib_error_t * clear_tag(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1444
set_interface_name
static clib_error_t * set_interface_name(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:2421
clear_interface_counters
static clib_error_t * clear_interface_counters(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:533
clear_hw_interfaces
static clib_error_t * clear_hw_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:178
set_interface_rx_mode
static clib_error_t * set_interface_rx_mode(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1546
promiscuous_cmd
static clib_error_t * promiscuous_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1117
set_tag
static clib_error_t * set_tag(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1419
set_ip_directed_broadcast
static clib_error_t * set_ip_directed_broadcast(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1468
set_hw_class
static clib_error_t * set_hw_class(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1026
interface_add_del_mac_address
static clib_error_t * interface_add_del_mac_address(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1295
set_unnumbered
static clib_error_t * set_unnumbered(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:968
mtu_cmd
static clib_error_t * mtu_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1153
set_interface_rss_queues_fn
static clib_error_t * set_interface_rss_queues_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1948
set_interface_rx_placement
static clib_error_t * set_interface_rx_placement(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1739
show_sw_interfaces
static clib_error_t * show_sw_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:282
set_interface_mac_address
static clib_error_t * set_interface_mac_address(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:1369
pcap_trace_command_fn
static clib_error_t * pcap_trace_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:2204
create_sub_interfaces
static clib_error_t * create_sub_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:696
set_state
static clib_error_t * set_state(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:914
show_hw_interfaces
static clib_error_t * show_hw_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:171