From 309bef25f109ff9ef03e178ac6fe233f4d778d73 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Fri, 22 Jan 2016 16:09:52 -0500 Subject: 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 --- vpp-api-test/vat/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vpp-api-test') 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 ... in ] [out ] [script] [json]\n"); exit (1); -- cgit 1.2.3-korg