X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmemif%2Fprivate.h;h=4613512041d2a3823f2bac488d81feb527302f35;hb=ca76831df3b6abd3c4af6381b873d9f589f20af7;hp=0116de3f1c33878584591e3043e6d9c787892587;hpb=7a40133d3355463368085c14f9fc4b4fd22d549a;p=vpp.git diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h index 0116de3f1c3..4613512041d 100644 --- a/src/plugins/memif/private.h +++ b/src/plugins/memif/private.h @@ -113,6 +113,7 @@ typedef struct typedef struct { + CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); /* ring data */ memif_ring_t *ring; memif_log2_ring_size_t log2_ring_size; @@ -122,6 +123,7 @@ typedef struct u16 last_head; u16 last_tail; u32 *buffers; + u8 buffer_pool_index; /* interrupts */ int int_fd; @@ -205,6 +207,7 @@ typedef struct typedef struct { + CLIB_ALIGN_MARK (pad, 16); /* align up to 16 bytes for 32bit builds */ void *data; u32 data_len; i16 buffer_offset; @@ -252,7 +255,7 @@ extern memif_main_t memif_main; extern vnet_device_class_t memif_device_class; extern vlib_node_registration_t memif_input_node; -enum +typedef enum { MEMIF_PROCESS_EVENT_START = 1, MEMIF_PROCESS_EVENT_STOP = 2,