Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b2dbb36
)
l2: l2_patch_main should not be static
71/23471/3
author
Vratko Polak
<
[email protected]
>
Thu, 21 Nov 2019 09:29:40 +0000
(10:29 +0100)
committer
Damjan Marion
<
[email protected]
>
Tue, 17 Dec 2019 18:17:44 +0000
(18:17 +0000)
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 <
[email protected]
>
src/vnet/l2/l2_patch.c
patch
|
blob
|
history
diff --git
a/src/vnet/l2/l2_patch.c
b/src/vnet/l2/l2_patch.c
index
6109228
..
fb8849d
100644
(file)
--- 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;