aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rwxr-xr-xsrc/vlib/physmem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/physmem.c b/src/vlib/physmem.c
index 40346fc2f70..846f9a091ae 100755
--- a/src/vlib/physmem.c
+++ b/src/vlib/physmem.c
@@ -178,6 +178,9 @@ vlib_physmem_config (vlib_main_t * vm, unformat_input_t * input)
{
if (unformat (input, "base-addr 0x%lx", &vpm->base_addr))
;
+ else if (unformat (input, "max-size %U",
+ unformat_memory_size, &vpm->max_size))
+ ;
else
return unformat_parse_error (input);
}