aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm/fifo_types.h
diff options
context:
space:
mode:
authorMichal Kalderon <mkalderon@marvell.com>2021-12-21 04:41:53 -0800
committerFlorin Coras <florin.coras@gmail.com>2021-12-29 17:54:41 +0000
commitfb079585cf6367eea279613bd7b9b810ab418edd (patch)
treef9c74c8a37d7957a21bb832ebb2eedd0d5650610 /src/svm/fifo_types.h
parent89618da2f719cc6b566a7e8f428f12917aeaaea5 (diff)
svm: Add support for thresh dequeue notification
Add the ability to set a threshold on the fifo that will be used to notify caller when de-queue from the fifo reached a value that is less than or equal to the threshold. Type: feature Change-Id: I70ba1a05f783ce5247409e9beebe4e336b7c1eb5 Signed-off-by: Michal Kalderon <mkalderon@marvell.com> Signed-off-by: Yuval Caduri <cyuval@marvell.com>
Diffstat (limited to 'src/svm/fifo_types.h')
-rw-r--r--src/svm/fifo_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svm/fifo_types.h b/src/svm/fifo_types.h
index 3787e5d5831..742351b1764 100644
--- a/src/svm/fifo_types.h
+++ b/src/svm/fifo_types.h
@@ -78,6 +78,7 @@ typedef struct svm_fifo_shr_
u32 head; /**< fifo head position/byte */
volatile u32 want_deq_ntf; /**< producer wants nudge */
volatile u32 has_deq_ntf;
+ u32 deq_thresh; /**< fifo threshold used for notifications */
CLIB_CACHE_LINE_ALIGN_MARK (producer);
u32 tail; /**< fifo tail position/byte */