aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-22 11:59:55 -0700
committerFlorin Coras <florin.coras@gmail.com>2020-10-22 18:59:47 +0000
commitbf693fff4d24d03a9f8d09e3a3a02740e4770d29 (patch)
tree154913a0ae82e0c9645d9f3b7a91fd11dec2ea6f /src/svm
parent7d8100fd951af29c245b72847fd2f7e8a5c74acd (diff)
svm: support large memfd segments
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I2221934083eb82183af9159e705833bd0984bd5d
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/ssvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index c5511d96e1c..cfdb796c35a 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -216,9 +216,9 @@ ssvm_delete_shm (ssvm_private_t * ssvm)
int
ssvm_server_init_memfd (ssvm_private_t * memfd)
{
- int log2_page_size, n_pages;
- uword page_size;
+ uword page_size, n_pages;
ssvm_shared_header_t *sh;
+ int log2_page_size;
void *oldheap;
if (memfd->ssvm_size == 0)