diff options
author | 2019-09-02 19:00:33 +0200 | |
---|---|---|
committer | 2019-09-28 20:24:13 +0000 | |
commit | b73d1e91c583b877bdf9a1ead48a45bc4b7cd7bc (patch) | |
tree | d41bb225c4b804a7a35886182ea22acac1fee8e8 /src/vnet/l2/l2_patch.c | |
parent | e1204e50495075912e96d897ce5962319ac02323 (diff) |
ipsec ip tcp l2: multiarch nodes cannot be declared as static
Credits to ray.kinsella@intel.com who spotted the issue and identified
root cause.
Type: fix
Change-Id: I4afe74c47769484309f6aebca2de56ad32c8041f
Signed-off-by: Damjan Marion <damarion@cisco.com>
(cherry picked from commit d770cfc96257f9bd9e0c96c8ebe50e4531dc1bc5)
Diffstat (limited to 'src/vnet/l2/l2_patch.c')
-rw-r--r-- | src/vnet/l2/l2_patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/l2/l2_patch.c b/src/vnet/l2/l2_patch.c index 54286c23d72..6109228b0b5 100644 --- 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 vlib_node_registration_t l2_patch_node; +extern vlib_node_registration_t l2_patch_node; #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* */ -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, |