X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmemif%2Fmemif.h;h=1c92d2640e5f65df0ac86f49e777b6f03f4dbfc3;hb=47447f1f599064032d364ad253f0b0a91fe21435;hp=3fbce91d68fb82324178beae232b7f4fac6d1688;hpb=d50c987ead437610dfaecddd15d34461a9ff2ec2;p=vpp.git diff --git a/src/plugins/memif/memif.h b/src/plugins/memif/memif.h index 3fbce91d68f..1c92d2640e5 100644 --- a/src/plugins/memif/memif.h +++ b/src/plugins/memif/memif.h @@ -27,6 +27,8 @@ #define MEMIF_VERSION_MINOR 0 #define MEMIF_VERSION ((MEMIF_VERSION_MAJOR << 8) | MEMIF_VERSION_MINOR) +#define MEMIF_SECRET_SIZE 24 + /* * Type definitions */ @@ -85,7 +87,7 @@ typedef struct __attribute__ ((packed)) memif_version_t version; memif_interface_id_t id; memif_interface_mode_t mode:8; - uint8_t secret[24]; + uint8_t secret[MEMIF_SECRET_SIZE]; uint8_t name[32]; } memif_msg_init_t; @@ -170,7 +172,7 @@ typedef struct MEMIF_CACHELINE_ALIGN_MARK (cacheline1); volatile uint16_t tail; MEMIF_CACHELINE_ALIGN_MARK (cacheline2); - memif_desc_t desc[0]; + memif_desc_t desc[]; } memif_ring_t; #endif /* _MEMIF_H_ */