summaryrefslogtreecommitdiffstats
path: root/src/svm/svm_fifo.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-03-06 02:23:58 +0000
committerDave Barach <openvpp@barachs.net>2020-03-09 22:02:57 +0000
commit06d477585ce8ff5a18bec88a622bed3764d3a75d (patch)
tree015d70307e8c69acff8872c7ab9a274a1409c29b /src/svm/svm_fifo.h
parent3d9f134e77864024d67f27e85d85e2ad12a13dc6 (diff)
svm: track fifo segment virtual memory consumption
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I89d33d8e7e7ab049750439b22ba50372fd2261ca
Diffstat (limited to 'src/svm/svm_fifo.h')
-rw-r--r--src/svm/svm_fifo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svm/svm_fifo.h b/src/svm/svm_fifo.h
index ea10a7c6580..0a3d17e42ea 100644
--- a/src/svm/svm_fifo.h
+++ b/src/svm/svm_fifo.h
@@ -669,6 +669,7 @@ svm_fifo_size (svm_fifo_t * f)
static inline void
svm_fifo_set_size (svm_fifo_t * f, u32 size)
{
+ fsh_virtual_mem_update (f->fs_hdr, f->slice_index, (int) f->size - size);
f->size = size;
}