Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: add spinlock inline functions
[vpp.git]
/
src
/
vnet
/
devices
/
af_packet
/
af_packet.h
diff --git
a/src/vnet/devices/af_packet/af_packet.h
b/src/vnet/devices/af_packet/af_packet.h
index
50ec237
..
77a2c7a
100644
(file)
--- a/
src/vnet/devices/af_packet/af_packet.h
+++ b/
src/vnet/devices/af_packet/af_packet.h
@@
-17,10
+17,12
@@
*------------------------------------------------------------------
*/
*------------------------------------------------------------------
*/
+#include <vppinfra/lock.h>
+
typedef struct
{
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
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;
u8 *host_if_name;
int fd;
struct tpacket_req *rx_req;