Go to the source code of this file.
|
void | qos_mark_ip_enable_disable (u32 sw_if_index, u8 enable) |
|
void | qos_mark_vlan_enable_disable (u32 sw_if_index, u8 enable) |
|
void | qos_mark_mpls_enable_disable (u32 sw_if_index, u8 enable) |
|
static void | qos_egress_map_feature_config (u32 sw_if_index, qos_source_t qs, u8 enable) |
|
static qos_egress_map_t * | qos_egress_map_interface (u32 sw_if_index, qos_source_t output_source) |
|
static uword | qos_mark_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, qos_source_t output_source, int is_ip6) |
|
static u8 * | format_qos_mark_trace (u8 *s, va_list *args) |
|
static uword | ip4_qos_mark (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | ip6_qos_mark (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | mpls_qos_mark (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | vlan_mpls_qos_mark (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | vlan_ip4_qos_mark (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | vlan_ip6_qos_mark (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (ip4_qos_mark_node, ip4_qos_mark) |
|
| VNET_FEATURE_INIT (ip4_qos_mark_node, static) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (ip6_qos_mark_node, ip6_qos_mark) |
|
| VNET_FEATURE_INIT (ip6_qos_mark_node, static) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (mpls_qos_mark_node, mpls_qos_mark) |
|
| VNET_FEATURE_INIT (mpls_qos_mark_node, static) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (vlan_ip4_qos_mark_node, vlan_ip4_qos_mark) |
|
| VNET_FEATURE_INIT (vlan_ip4_qos_mark_node, static) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (vlan_ip6_qos_mark_node, vlan_ip6_qos_mark) |
|
| VNET_FEATURE_INIT (vlan_ip6_qos_mark_node, static) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (vlan_mpls_qos_mark_node, vlan_mpls_qos_mark) |
|
| VNET_FEATURE_INIT (vlan_mpls_qos_mark_node, static) |
|
int | qos_mark_enable (u32 sw_if_index, qos_source_t output_source, qos_egress_map_id_t mid) |
| enable QoS marking by associating a MAP with an interface. More...
|
|
int | qos_mark_disable (u32 sw_if_index, qos_source_t output_source) |
|
static clib_error_t * | qos_mark_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
◆ qos_mark_trace_t
◆ format_qos_mark_trace()
static u8* format_qos_mark_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ ip4_qos_mark()
◆ ip6_qos_mark()
◆ mpls_qos_mark()
◆ qos_egress_map_feature_config()
static void qos_egress_map_feature_config |
( |
u32 |
sw_if_index, |
|
|
qos_source_t |
qs, |
|
|
u8 |
enable |
|
) |
| |
|
static |
◆ qos_egress_map_interface()
◆ qos_mark_cli()
◆ qos_mark_disable()
◆ qos_mark_enable()
enable QoS marking by associating a MAP with an interface.
The output_source specifies which protocol/header the QoS value will be written into
Definition at line 408 of file qos_mark.c.
◆ qos_mark_inline()
◆ qos_mark_ip_enable_disable()
void qos_mark_ip_enable_disable |
( |
u32 |
sw_if_index, |
|
|
u8 |
enable |
|
) |
| |
◆ qos_mark_mpls_enable_disable()
void qos_mark_mpls_enable_disable |
( |
u32 |
sw_if_index, |
|
|
u8 |
enable |
|
) |
| |
◆ qos_mark_vlan_enable_disable()
void qos_mark_vlan_enable_disable |
( |
u32 |
sw_if_index, |
|
|
u8 |
enable |
|
) |
| |
◆ vlan_ip4_qos_mark()
◆ vlan_ip6_qos_mark()
◆ vlan_mpls_qos_mark()
◆ VLIB_NODE_FUNCTION_MULTIARCH() [1/6]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [2/6]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [3/6]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [4/6]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [5/6]
◆ VLIB_NODE_FUNCTION_MULTIARCH() [6/6]
◆ VNET_FEATURE_INIT() [1/6]
◆ VNET_FEATURE_INIT() [2/6]
◆ VNET_FEATURE_INIT() [3/6]
◆ VNET_FEATURE_INIT() [4/6]
◆ VNET_FEATURE_INIT() [5/6]
◆ VNET_FEATURE_INIT() [6/6]
◆ ip4_qos_mark_node
Initial value:= {
.name = "ip4-qos-mark",
.vector_size =
sizeof (
u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip4-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
static uword ip4_qos_mark(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (ip4_qos_mark_node)
Definition at line 271 of file qos_mark.c.
◆ ip6_qos_mark_node
Initial value:= {
.name = "ip6-qos-mark",
.vector_size =
sizeof (
u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip6-drop",
},
}
static uword ip6_qos_mark(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip6_qos_mark_node)
Definition at line 293 of file qos_mark.c.
◆ mpls_qos_mark_node
Initial value:= {
.name = "mpls-qos-mark",
.vector_size =
sizeof (
u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "mpls-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
static uword mpls_qos_mark(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (mpls_qos_mark_node)
Definition at line 315 of file qos_mark.c.
◆ qos_egress_map_interface_command
Initial value:= {
.path = "qos mark",
.short_help = "qos mark <SOURCE> <INTERFACE> id <MAP>",
.is_mp_safe = 1,
}
static clib_error_t * qos_mark_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (qos_egress_map_interface_command)
Definition at line 502 of file qos_mark.c.
◆ qos_mark_configs
per-interface vector of which MAP is used by which interface for each output source
Definition at line 25 of file qos_mark.c.
◆ vlan_ip4_qos_mark_node
Initial value:= {
.name = "vlan-ip4-qos-mark",
.vector_size =
sizeof (
u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
static uword vlan_ip4_qos_mark(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (vlan_ip4_qos_mark_node)
Definition at line 337 of file qos_mark.c.
◆ vlan_ip6_qos_mark_node
Initial value:= {
.name = "vlan-ip6-qos-mark",
.vector_size =
sizeof (
u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
static uword vlan_ip6_qos_mark(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (vlan_ip6_qos_mark_node)
Definition at line 360 of file qos_mark.c.
◆ vlan_mpls_qos_mark_node
Initial value:= {
.name = "vlan-mpls-qos-mark",
.vector_size =
sizeof (
u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static uword vlan_mpls_qos_mark(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (vlan_mpls_qos_mark_node)
Definition at line 383 of file qos_mark.c.