summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-11-21 10:29:40 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-04-30 11:55:03 +0000
commit8e4ed521a65a6fcf787a10e34d155e41a7df4f52 (patch)
tree9e5b813a39f1624d3639b6d23c9fc311b056bc42 /src/vnet/l2
parent09c0946e91b4810c8450fe0962b2085506fbda25 (diff)
l2: l2_patch_main should not be static
Without understanding what is going on, a pattern from l2_fwd.c is applied to l2_patch.c file. Type: fix Fixes: d770cfc96257f9bd9e0c96c8ebe50e4531dc1bc5 Ticket: VPP-1799 Change-Id: Ia97d448f9d1846549f57ea69044ae15fa39bb942 Signed-off-by: Vratko Polak <vrpolak@cisco.com> (cherry picked from commit 3be9351e5e5c54f76544836044c6e81df8a0b899)
Diffstat (limited to 'src/vnet/l2')
-rw-r--r--src/vnet/l2/l2_patch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/l2/l2_patch.c b/src/vnet/l2/l2_patch.c
index 6109228b0b5..fb8849dc261 100644
--- a/src/vnet/l2/l2_patch.c
+++ b/src/vnet/l2/l2_patch.c
@@ -49,7 +49,11 @@ format_l2_patch_trace (u8 * s, va_list * args)
return s;
}
-static l2_patch_main_t l2_patch_main;
+#ifndef CLIB_MARCH_VARIANT
+l2_patch_main_t l2_patch_main;
+#else
+extern l2_patch_main_t l2_patch_main;
+#endif
extern vlib_node_registration_t l2_patch_node;