vppinfra: add spinlock inline functions
[vpp.git] / src / vnet / devices / af_packet / af_packet.h
index 50ec237..77a2c7a 100644 (file)
  *------------------------------------------------------------------
  */
 
+#include <vppinfra/lock.h>
+
 typedef struct
 {
   CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
-  volatile u32 *lockp;
+  clib_spinlock_t lockp;
   u8 *host_if_name;
   int fd;
   struct tpacket_req *rx_req;