Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ipsec ip tcp l2: multiarch nodes cannot be declared as static
[vpp.git]
/
src
/
vnet
/
l2
/
l2_patch.c
diff --git
a/src/vnet/l2/l2_patch.c
b/src/vnet/l2/l2_patch.c
index
54286c2
..
6109228
100644
(file)
--- a/
src/vnet/l2/l2_patch.c
+++ b/
src/vnet/l2/l2_patch.c
@@
-51,7
+51,7
@@
format_l2_patch_trace (u8 * s, va_list * args)
static l2_patch_main_t l2_patch_main;
static l2_patch_main_t l2_patch_main;
-
static
vlib_node_registration_t l2_patch_node;
+
extern
vlib_node_registration_t l2_patch_node;
#define foreach_l2_patch_error \
_(PATCHED, "L2 patch packets") \
#define foreach_l2_patch_error \
_(PATCHED, "L2 patch packets") \
@@
-204,7
+204,7
@@
VLIB_NODE_FN (l2_patch_node) (vlib_main_t * vm,
}
/* *INDENT-OFF* */
}
/* *INDENT-OFF* */
-VLIB_REGISTER_NODE (l2_patch_node
, static
) = {
+VLIB_REGISTER_NODE (l2_patch_node) = {
.name = "l2-patch",
.vector_size = sizeof (u32),
.format_trace = format_l2_patch_trace,
.name = "l2-patch",
.vector_size = sizeof (u32),
.format_trace = format_l2_patch_trace,