Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
dpdk: print device flags in the 'show hardware' output
[vpp.git]
/
src
/
vlibmemory
/
memory_api.h
diff --git
a/src/vlibmemory/memory_api.h
b/src/vlibmemory/memory_api.h
index
9b87f5a
..
4cda04b
100644
(file)
--- a/
src/vlibmemory/memory_api.h
+++ b/
src/vlibmemory/memory_api.h
@@
-19,6
+19,7
@@
#define SRC_VLIBMEMORY_MEMORY_API_H_
#include <svm/svm.h>
#define SRC_VLIBMEMORY_MEMORY_API_H_
#include <svm/svm.h>
+#include <svm/ssvm.h>
#include <svm/queue.h>
#include <vlib/vlib.h>
#include <vlibapi/api.h>
#include <svm/queue.h>
#include <vlib/vlib.h>
#include <vlibapi/api.h>
@@
-57,6
+58,13
@@
vl_msg_api_handle_from_index_and_epoch (u32 index, u32 epoch)
return handle;
}
return handle;
}
+static inline u8
+vl_msg_api_handle_is_valid (u32 handle, u32 restarts)
+{
+ u32 epoch = vl_msg_api_handle_get_epoch (handle);
+ return ((restarts & VL_API_EPOCH_MASK) == epoch);
+}
+
#define VL_MEM_API_LOG_Q_LEN(fmt,qlen) \
if (TRACE_VLIB_MEMORY_QUEUE) \
do { \
#define VL_MEM_API_LOG_Q_LEN(fmt,qlen) \
if (TRACE_VLIB_MEMORY_QUEUE) \
do { \