misc: remove GNU Indent directives
[vpp.git] / src / plugins / ioam / export-vxlan-gpe / vxlan_gpe_node.c
index f75b708..839fd80 100644 (file)
  */
 #include <vlib/vlib.h>
 #include <vnet/vnet.h>
-#include <vnet/pg/pg.h>
 #include <vppinfra/error.h>
 #include <vnet/ip/ip.h>
-#include <ioam/export-common/ioam_export.h>
 #include <vnet/vxlan-gpe/vxlan_gpe.h>
 #include <vnet/vxlan-gpe/vxlan_gpe_packet.h>
+#include <ioam/export-common/ioam_export.h>
 
 typedef struct
 {
@@ -41,6 +40,8 @@ format_export_trace (u8 * s, va_list * args)
 }
 
 vlib_node_registration_t vxlan_export_node;
+extern vlib_node_registration_t export_node;
+extern ioam_export_main_t vxlan_gpe_ioam_export_main;
 
 #define foreach_export_error \
 _(RECORDED, "Packets recorded for export")
@@ -121,6 +122,12 @@ copy3cachelines (void *dst, const void *src, size_t n)
 #endif
 }
 
+static void
+vxlan_gpe_export_fixup_func (vlib_buffer_t * export_buf,
+                            vlib_buffer_t * pak_buf)
+{
+  /* Todo: on implementing VXLAN GPE analyse */
+}
 
 static uword
 vxlan_gpe_export_node_fn (vlib_main_t * vm,
@@ -129,14 +136,14 @@ vxlan_gpe_export_node_fn (vlib_main_t * vm,
   ioam_export_main_t *em = &vxlan_gpe_ioam_export_main;
   ioam_export_node_common (em, vm, node, frame, ip4_header_t, length,
                           ip_version_and_header_length,
-                          EXPORT_NEXT_VXLAN_GPE_INPUT);
+                          EXPORT_NEXT_VXLAN_GPE_INPUT,
+                          vxlan_gpe_export_fixup_func);
   return frame->n_vectors;
 }
 
 /*
  * Node for VXLAN-GPE export
  */
-/* *INDENT-OFF* */
 VLIB_REGISTER_NODE (vxlan_export_node) =
 {
   .function = vxlan_gpe_export_node_fn,
@@ -151,7 +158,6 @@ VLIB_REGISTER_NODE (vxlan_export_node) =
     .next_nodes =
   {[EXPORT_NEXT_VXLAN_GPE_INPUT] = "vxlan-gpe-pop-ioam-v4"},
 };
-/* *INDENT-ON* */
 
 /*
  * fd.io coding-style-patch-verification: ON