aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/netmap/netmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/devices/netmap/netmap.h')
-rw-r--r--src/vnet/devices/netmap/netmap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/devices/netmap/netmap.h b/src/vnet/devices/netmap/netmap.h
index 39a94043..e04f045d 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;