af_xdp: update af_xdp driver plugin to depend on libxdp
[vpp.git] / src / plugins / pppoe / pppoe.h
index 77bc88f..a72b734 100644 (file)
@@ -48,6 +48,9 @@ typedef struct
 
 typedef struct
 {
+  /* Required for pool_get_aligned  */
+  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
+
   /* pppoe session_id in HOST byte order */
   u16 session_id;
 
@@ -91,9 +94,10 @@ typedef enum
   PPPOE_N_ERROR,
 } pppoe_input_error_t;
 
+extern char *pppoe_error_strings[];
 
 #define MTU 1500
-#define MTU_BUFFERS ((MTU + VLIB_BUFFER_DATA_SIZE - 1) / VLIB_BUFFER_DATA_SIZE)
+#define MTU_BUFFERS ((MTU + vlib_buffer_get_default_data_size(vm) - 1) / vlib_buffer_get_default_data_size(vm))
 #define NUM_BUFFERS_TO_ALLOC 32
 
 /*
@@ -201,6 +205,8 @@ typedef struct
   u32 cp_if_index;
 } vnet_pppoe_add_del_tap_args_t;
 
+int pppoe_add_del_cp (u32 cp_if_index, u8 is_add);
+
 always_inline u64
 pppoe_make_key (u8 * mac_address, u16 session_id)
 {