FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
qos_types.h File Reference
+ Include dependency graph for qos_types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QOS_N_SOURCES   (QOS_SOURCE_IP + 1)
 The maximum number of sources. More...
 
#define QOS_SOURCE_NAMES
 
#define FOR_EACH_QOS_SOURCE(_src)
 

Typedefs

typedef enum qos_source_t_ qos_source_t
 QoS types. More...
 
typedef u8 qos_bits_t
 Type, er, safety for us water based entities. More...
 

Enumerations

enum  qos_source_t_ { QOS_SOURCE_EXT, QOS_SOURCE_VLAN, QOS_SOURCE_MPLS, QOS_SOURCE_IP }
 QoS types. More...
 

Functions

u8format_qos_source (u8 *s, va_list *args)
 format/unformat QoS source types More...
 
uword unformat_qos_source (unformat_input_t *input, va_list *args)
 

Macro Definition Documentation

◆ FOR_EACH_QOS_SOURCE

#define FOR_EACH_QOS_SOURCE (   _src)
Value:
for (_src = QOS_SOURCE_EXT; \
_src <= QOS_SOURCE_IP; \
_src++)
Some external source, e.g.
Definition: qos_types.h:35

Definition at line 54 of file qos_types.h.

◆ QOS_N_SOURCES

#define QOS_N_SOURCES   (QOS_SOURCE_IP + 1)

The maximum number of sources.

defined outside the enum so switch statements don't need to handle a non-value nor use a default label

Definition at line 45 of file qos_types.h.

◆ QOS_SOURCE_NAMES

#define QOS_SOURCE_NAMES
Value:
{ \
[QOS_SOURCE_EXT] = "ext", \
[QOS_SOURCE_IP] = "IP", \
[QOS_SOURCE_MPLS] = "MPLS", \
[QOS_SOURCE_VLAN] = "VLAN", \
}
Some external source, e.g.
Definition: qos_types.h:35

Definition at line 47 of file qos_types.h.

Typedef Documentation

◆ qos_bits_t

typedef u8 qos_bits_t

Type, er, safety for us water based entities.

Definition at line 68 of file qos_types.h.

◆ qos_source_t

QoS types.

Sources for the QoS bits in the packet

Enumeration Type Documentation

◆ qos_source_t_

QoS types.

Sources for the QoS bits in the packet

Enumerator
QOS_SOURCE_EXT 

Some external source, e.g.

a plugin.

QOS_SOURCE_VLAN 
QOS_SOURCE_MPLS 
QOS_SOURCE_IP 

Definition at line 30 of file qos_types.h.

Function Documentation

◆ format_qos_source()

u8* format_qos_source ( u8 s,
va_list *  args 
)

format/unformat QoS source types

Definition at line 27 of file qos_types.c.

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

◆ unformat_qos_source()

uword unformat_qos_source ( unformat_input_t input,
va_list *  args 
)

Definition at line 35 of file qos_types.c.

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