summaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/svm_fifo_segment.c4
-rw-r--r--src/svm/svm_fifo_segment.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/svm/svm_fifo_segment.c b/src/svm/svm_fifo_segment.c
index e43c084f63b..a56a714cc83 100644
--- a/src/svm/svm_fifo_segment.c
+++ b/src/svm/svm_fifo_segment.c
@@ -229,11 +229,11 @@ svm_fifo_segment_create_process_private (svm_fifo_segment_create_args_t * a)
u32 rnd_size = 0;
int i;
- if (a->private_segment_count && a->private_segment_size)
+ if (a->private_segment_count)
{
u8 *heap;
u32 pagesize = clib_mem_get_page_size ();
- rnd_size = (a->private_segment_size + (pagesize - 1)) & ~pagesize;
+ rnd_size = (a->segment_size + (pagesize - 1)) & ~pagesize;
for (i = 0; i < a->private_segment_count; i++)
{
diff --git a/src/svm/svm_fifo_segment.h b/src/svm/svm_fifo_segment.h
index 5b771328c6c..7a30efabdc4 100644
--- a/src/svm/svm_fifo_segment.h
+++ b/src/svm/svm_fifo_segment.h
@@ -72,7 +72,6 @@ typedef struct
u32 tx_fifo_size;
u32 preallocated_fifo_pairs;
u32 private_segment_count;
- u32 private_segment_size;
} svm_fifo_segment_create_args_t;
static inline svm_fifo_segment_private_t *