X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmemif%2Fmemif.h;h=f57170f8e6f0bc2d10d3583145e85b33e7ba424c;hb=1927da29ccbe1d4cc8e59ccfa197eb41c257814f;hp=a7a88e07b0e5d013098a51f6a2e6a18cb24e136c;hpb=b18e0de1f9630fab8b3d6ffe85c7a6ee35a6fdac;p=vpp.git diff --git a/src/plugins/memif/memif.h b/src/plugins/memif/memif.h index a7a88e07b0e..f57170f8e6f 100644 --- a/src/plugins/memif/memif.h +++ b/src/plugins/memif/memif.h @@ -15,6 +15,8 @@ *------------------------------------------------------------------ */ +#include + typedef struct { u16 version; @@ -98,7 +100,7 @@ typedef struct typedef struct { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); - volatile u32 *lockp; + clib_spinlock_t lockp; u32 flags; #define MEMIF_IF_FLAG_ADMIN_UP (1 << 0) #define MEMIF_IF_FLAG_IS_SLAVE (1 << 1)