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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user