Skip to content

Commit

Permalink
dpdk: reject --user option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
azhou-nicira committed Oct 1, 2015
1 parent e91b927 commit dfc89a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/netdev-dpdk.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit dfc89a5

Please sign in to comment.