aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vxlan-gpe/plugin.c
diff options
context:
space:
mode:
authorlajoskatona <katonalala@gmail.com>2024-05-08 17:02:54 +0200
committerBenoit Ganne <bganne@cisco.com>2025-02-25 08:23:39 +0000
commitbb4858cdfe72bad2d2bacdc48fe9b7f633176c25 (patch)
tree63eb9c6ffc6fe738335267a238d3cf1f85430af6 /src/plugins/vxlan-gpe/plugin.c
parentd6d44bd4735c23c8ce2ed314551a20a044199412 (diff)
vxlan: move vxlan-gpe to a plugin
Move vxlan-gpe folder under vnet to the plugin folder, update cmake configuration and header paths, and add plugin.c to register plugin. JIRA: VPP-2059 Type: improvement Change-Id: I31b6d326276c4aa684fcdcf8443ef349f7816a6d Signed-off-by: lajoskatona <katonalala@gmail.com> Signed-off-by: Nicolas PLANEL <nplanel@cisco.com>
Diffstat (limited to 'src/plugins/vxlan-gpe/plugin.c')
-rw-r--r--src/plugins/vxlan-gpe/plugin.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/vxlan-gpe/plugin.c b/src/plugins/vxlan-gpe/plugin.c
new file mode 100644
index 00000000000..5a711a39d78
--- /dev/null
+++ b/src/plugins/vxlan-gpe/plugin.c
@@ -0,0 +1,26 @@
+/*
+ * plugin.c: vxlan-gpe
+ *
+ * Copyright (c) OpenInfra Foundation Europe.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <vlib/vlib.h>
+#include <vnet/plugin/plugin.h>
+#include <vpp/app/version.h>
+// register a plugin
+
+VLIB_PLUGIN_REGISTER () = {
+ .version = VPP_BUILD_VER,
+ .description = "VxLan GPE Tunnels",
+};