buffers: revert protect against bad thread indices
[vpp.git] / src / vlib / physmem.c
old mode 100755 (executable)
new mode 100644 (file)
index 40346fc..76f8494
@@ -21,7 +21,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
-#include <vppinfra/linux/syscall.h>
+#include <vppinfra/clib.h>
 #include <vppinfra/linux/sysfs.h>
 #include <vlib/vlib.h>
 #include <vlib/physmem.h>
@@ -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);
     }