diff options
Diffstat (limited to 'src/vnet/devices/netmap/netmap.h')
-rw-r--r-- | src/vnet/devices/netmap/netmap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/devices/netmap/netmap.h b/src/vnet/devices/netmap/netmap.h index 39a94043c3c..e04f045d6e2 100644 --- a/src/vnet/devices/netmap/netmap.h +++ b/src/vnet/devices/netmap/netmap.h @@ -40,10 +40,12 @@ * SUCH DAMAGE. */ +#include <vppinfra/lock.h> + typedef struct { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); - volatile u32 *lockp; + clib_spinlock_t lockp; u8 *host_if_name; uword if_index; u32 hw_if_index; |