summaryrefslogtreecommitdiffstats
path: root/src/svm/svm_fifo_segment.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-12-11 04:59:01 -0800
committerDave Barach <openvpp@barachs.net>2017-12-14 00:45:51 +0000
commitff6e7699a5e9921d73818970ecf3571080922ecc (patch)
treef22a28b2024833ae0128b7249ff7f9e71ec29bc7 /src/svm/svm_fifo_segment.c
parentcf3561bde53173a7be9aa02ed4897c7f2d55bd0a (diff)
session: cleanup attach flags
Change-Id: I39d21d15677f57e10b69b8842f2cbca277abddf0 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm/svm_fifo_segment.c')
-rw-r--r--src/svm/svm_fifo_segment.c4
1 files changed, 2 insertions, 2 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++)
{