aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat/main.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-01-22 16:09:52 -0500
committerDave Barach <dave@barachs.net>2016-01-22 16:10:07 -0500
commit309bef25f109ff9ef03e178ac6fe233f4d778d73 (patch)
tree32f49e4638bf837cb03ec972dbdfbba29e0fc9e8 /vpp-api-test/vat/main.c
parent61efa140b1f44e0c568697fbc31cf3f430131ab2 (diff)
Enable shared-VM namespace support
Required prep work for gracefully supporting "... dpdk { proc-type secondary }" - multiple processes sharing a physical host, VM, container, etc. Change-Id: Ic3eb72f4093e26d7c86dde3b8799264f1d0c218b Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp-api-test/vat/main.c')
-rw-r--r--vpp-api-test/vat/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vpp-api-test/vat/main.c b/vpp-api-test/vat/main.c
index 1bec4a101d1..cde51fdbd12 100644
--- a/vpp-api-test/vat/main.c
+++ b/vpp-api-test/vat/main.c
@@ -176,6 +176,7 @@ int main (int argc, char ** argv)
unformat_input_t _argv, *a = &_argv;
u8 **input_files = 0;
u8 *output_file = 0;
+ u8 *chroot_prefix;
u8 *this_input_file;
u8 interactive = 1;
u8 json_output = 0;
@@ -213,7 +214,9 @@ int main (int argc, char ** argv)
else if (unformat (a, "plugin_name_filter %s",
(u8 *)&vat_plugin_name_filter))
vec_add1 (vat_plugin_name_filter, 0);
- else {
+ else if (unformat (a, "chroot prefix %s", &chroot_prefix)) {
+ vl_set_memory_root_path ((char *)chroot_prefix);
+ } else {
fformat (stderr,
"%s: usage [in <f1> ... in <fn>] [out <fn>] [script] [json]\n");
exit (1);