FD.io VPP  v18.07-rc0-415-g6c78436
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 tyeps. 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 tyeps. 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

#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.

#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.

#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

typedef u8 qos_bits_t

Type, er, safety for us water based entities.

Definition at line 68 of file qos_types.h.

QoS tyeps.

Sources for the QoS bits in the packet

Enumeration Type Documentation

QoS tyeps.

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

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:

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: