summaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-07-11 05:25:06 -0700
committerDave Barach <openvpp@barachs.net>2018-07-11 23:10:09 +0000
commit46f001d2aca53aff029a3cfcc26171d1145282f9 (patch)
tree453cf18b44a291cff030920b9a33eb1b13eea74d /src/svm
parentbf2f3261b2302e2cc182ea71b7df61c2e2b405ce (diff)
session: push tx notifications only if needed
VPP-1340 Change-Id: Ia3f2fc054dbfb2ba912a768c70466e7042024e32 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/svm_fifo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/svm/svm_fifo.h b/src/svm/svm_fifo.h
index 90a49c03fc1..0d5a08b86ae 100644
--- a/src/svm/svm_fifo.h
+++ b/src/svm/svm_fifo.h
@@ -113,6 +113,12 @@ svm_fifo_max_enqueue (svm_fifo_t * f)
return f->nitems - svm_fifo_max_dequeue (f);
}
+static inline int
+svm_fifo_has_event (svm_fifo_t * f)
+{
+ return f->has_event;
+}
+
static inline u8
svm_fifo_has_ooo_data (svm_fifo_t * f)
{