FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Interface CLI. More...
Go to the source code of this file.
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... | |
|
static |
|
static |
|
static |
|
static |
Definition at line 57 of file interface_cli.c.
|
static |
|
static |
|
static |
|
static |
Parse subinterface names.
The following subinterface syntax is supported. The first two are for backwards compatability:
<intf-name> <id>
<intf-name> <min_id>-<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]
<intf-name> <id> dot1q any [exact-match]
<intf-name> <id> dot1q <outer_id> inner-dot1q <inner_id> [exact-match]
<intf-name> <id> dot1q <outer_id> inner-dot1q any [exact-match]
<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]
<intf-name> <id> untagged
<intf-name> <id> default
Definition at line 642 of file interface_cli.c.
|
static |
|
static |
|
static |
|
static |
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.
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.
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.
|
static |
|
static |
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.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 66 of file interface_cli.c.
|
static |
|
static |
|
static |
int vnet_pcap_dispatch_trace_configure | ( | vnet_pcap_dispatch_trace_args_t * | a | ) |
Definition at line 2056 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (clear_hw_interface_counters_command)
Definition at line 263 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (clear_interface_counters_command)
Definition at line 572 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (clear_tag_command)
Definition at line 1460 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cmd_set_if_name)
Definition at line 2463 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cmd_set_if_rx_mode)
Definition at line 1630 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cmd_set_if_rx_placement)
Definition at line 1833 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cmd_set_if_tx_queue)
Definition at line 1929 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cmd_set_interface_rss_queues)
Definition at line 2013 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (create_sub_interfaces_command)
Definition at line 903 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (interface_add_del_mac_address_cmd)
Definition at line 1361 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (pcap_tx_trace_command)
Definition at line 2410 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (renumber_interface_command)
Definition at line 1109 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_hw_class_command)
Definition at line 1059 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_interface_mac_address_cmd)
Definition at line 1411 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_interface_mtu_cmd)
Definition at line 1209 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_interface_promiscuous_cmd)
Definition at line 1145 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_ip_directed_broadcast_command)
Definition at line 1500 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_state_command)
Definition at line 960 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_tag_command)
Definition at line 1436 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (set_unnumbered_command)
Definition at line 1016 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_hw_interfaces_command)
Definition at line 242 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_interface_rx_placement)
Definition at line 1702 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_interface_sec_mac_addr)
Definition at line 1287 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_sw_interfaces_command)
Definition at line 509 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vnet_cli_interface_command)
Definition at line 519 of file interface_cli.c.
|
static |
(constructor) VLIB_CLI_COMMAND (vnet_cli_set_interface_command)
Definition at line 526 of file interface_cli.c.