Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP V2
[vpp.git]
/
src
/
vnet
/
l2
/
l2_output.h
diff --git
a/src/vnet/l2/l2_output.h
b/src/vnet/l2/l2_output.h
index
6da3e30
..
6b00d01
100644
(file)
--- a/
src/vnet/l2/l2_output.h
+++ b/
src/vnet/l2/l2_output.h
@@
-75,14
+75,17
@@
typedef struct
vnet_main_t *vnet_main;
} l2output_main_t;
vnet_main_t *vnet_main;
} l2output_main_t;
-l2output_main_t l2output_main;
+extern l2output_main_t l2output_main;
+
+extern vlib_node_registration_t l2output_node;
/* L2 output features */
/* L2 output features */
-/* Mappings from feature ID to graph node name */
+/* Mappings from feature ID to graph node name
in reverse order
*/
#define foreach_l2output_feat \
_(OUTPUT, "interface-output") \
#define foreach_l2output_feat \
_(OUTPUT, "interface-output") \
- _(SPAN, "feature-bitmap-drop") \
+ _(SPAN, "span-l2-output") \
+ _(GBP_POLICY, "gbp-policy") \
_(CFM, "feature-bitmap-drop") \
_(QOS, "feature-bitmap-drop") \
_(ACL, "l2-output-acl") \
_(CFM, "feature-bitmap-drop") \
_(QOS, "feature-bitmap-drop") \
_(ACL, "l2-output-acl") \
@@
-103,6
+106,8
@@
typedef enum
L2OUTPUT_N_FEAT,
} l2output_feat_t;
L2OUTPUT_N_FEAT,
} l2output_feat_t;
+STATIC_ASSERT (L2OUTPUT_N_FEAT <= 32, "too many l2 output features");
+
/* Feature bit masks */
typedef enum
{
/* Feature bit masks */
typedef enum
{
@@
-137,6
+142,8
@@
typedef enum
/* Return an array of strings containing graph node names of each feature */
char **l2output_get_feat_names (void);
/* Return an array of strings containing graph node names of each feature */
char **l2output_get_feat_names (void);
+/* arg0 - u32 feature_bitmap */
+u8 *format_l2_output_features (u8 * s, va_list * args);
/**
* The next set of functions is for use by output feature graph nodes.
/**
* The next set of functions is for use by output feature graph nodes.