aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-12-02 14:19:49 +0100
committerNeale Ranns <neale@graphiant.com>2021-02-08 11:41:12 +0000
commit7d527a2292bdabc84ff070f5b27f35c0e858cddd (patch)
tree4aee489caedb05eaf24ccb03d05f0fe5c383eb64 /src/plugins
parente5b7ca4bcea8c404d95e00f5db4c40d47b6e185b (diff)
misc: support api generated dependency for multiarch source
Fix dependency issues where multi-arch file is using API generated file. Type: improvement Change-Id: I5d4af7a630529bc138c35841723e38938f36d963 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/nat/CMakeLists.txt3
-rw-r--r--src/plugins/nat/pnat/pnat_node.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/nat/CMakeLists.txt b/src/plugins/nat/CMakeLists.txt
index d3f3eac3c05..8fefadf0dd1 100644
--- a/src/plugins/nat/CMakeLists.txt
+++ b/src/plugins/nat/CMakeLists.txt
@@ -143,8 +143,11 @@ add_vpp_plugin(nat64
add_vpp_plugin(pnat
SOURCES
pnat/pnat.c
+ pnat/pnat_node.c
pnat/pnat_cli.c
pnat/pnat_api.c
+
+ MULTIARCH_SOURCES
pnat/pnat_node.c
API_FILES
diff --git a/src/plugins/nat/pnat/pnat_node.c b/src/plugins/nat/pnat/pnat_node.c
index 0209b49b0aa..ec505cfa926 100644
--- a/src/plugins/nat/pnat/pnat_node.c
+++ b/src/plugins/nat/pnat/pnat_node.c
@@ -44,6 +44,7 @@ VLIB_NODE_FN(pnat_output_node)
return pnat_node_inline(vm, node, frame, PNAT_IP4_OUTPUT, VLIB_TX);
}
+#ifndef CLIB_MARCH_VARIANT
VLIB_REGISTER_NODE(pnat_input_node) = {
.name = "pnat-input",
.vector_size = sizeof(u32),
@@ -67,6 +68,7 @@ VLIB_REGISTER_NODE(pnat_output_node) = {
.error_counters = pnat_error_counters,
.sibling_of = "pnat-input",
};
+#endif
/* Hook up features */
VNET_FEATURE_INIT(pnat_input, static) = {