2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

dpdk: reject --user option

dpdk datapath needs to run as root. Block the --user
option for now. It is likely we will revisit this issue for possibly
supporting --user option for dpdk datapath process as well.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Andy Zhou
2015-09-21 15:06:00 -07:00
parent e91b927d89
commit dfc89a556d

View File

@@ -2142,6 +2142,14 @@ dpdk_init(int argc, char **argv)
argc--;
argv++;
/* Reject --user option */
int i;
for (i = 0; i < argc; i++) {
if (!strcmp(argv[i], "--user")) {
VLOG_ERR("Can not mix --dpdk and --user options, aborting.");
}
}
#ifdef VHOST_CUSE
if (process_vhost_flags("-cuse_dev_name", strdup("vhost-net"),
PATH_MAX, argv, &cuse_dev_name)) {