misc: Purge unused pg includes
[vpp.git] / src / plugins / pppoe / pppoe_decap.c
index 4f9e766..1079cc8 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include <vlib/vlib.h>
-#include <vnet/pg/pg.h>
 #include <vnet/ppp/packet.h>
 #include <pppoe/pppoe.h>
 
@@ -46,8 +45,7 @@ static u8 * format_pppoe_rx_trace (u8 * s, va_list * args)
   return s;
 }
 
-static uword
-pppoe_input (vlib_main_t * vm,
+VLIB_NODE_FN (pppoe_input_node) (vlib_main_t * vm,
              vlib_node_runtime_t * node,
              vlib_frame_t * from_frame)
 {
@@ -391,15 +389,16 @@ pppoe_input (vlib_main_t * vm,
   return from_frame->n_vectors;
 }
 
-static char * pppoe_error_strings[] = {
+#ifndef CLIB_MARCH_VARIANT
+char * pppoe_error_strings[] = {
 #define pppoe_error(n,s) s,
 #include <pppoe/pppoe_error.def>
 #undef pppoe_error
 #undef _
 };
+#endif /* CLIB_MARCH_VARIANT */
 
 VLIB_REGISTER_NODE (pppoe_input_node) = {
-  .function = pppoe_input,
   .name = "pppoe-input",
   /* Takes a vector of packets. */
   .vector_size = sizeof (u32),
@@ -417,6 +416,4 @@ VLIB_REGISTER_NODE (pppoe_input_node) = {
   .format_trace = format_pppoe_rx_trace,
 };
 
-VLIB_NODE_FUNCTION_MULTIARCH (pppoe_input_node, pppoe_input)
-