Skip to content

Commit a673443

Browse files
Update ff_config.c
now dpdk only support --allow
1 parent dca94ce commit a673443

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/ff_config.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ ini_parse_handler(void* user, const char* section, const char* name,
879879
pconfig->dpdk.base_virtaddr= strdup(value);
880880
} else if (MATCH("dpdk", "file_prefix")) {
881881
pconfig->dpdk.file_prefix = strdup(value);
882-
} else if (MATCH("dpdk", "pci_whitelist")) {
883-
pconfig->dpdk.pci_whitelist = strdup(value);
882+
} else if (MATCH("dpdk", "allow")) {
883+
pconfig->dpdk.allow = strdup(value);
884884
} else if (MATCH("dpdk", "port_list")) {
885885
return parse_port_list(pconfig, value);
886886
} else if (MATCH("dpdk", "nb_vdev")) {
@@ -998,15 +998,14 @@ dpdk_args_setup(struct ff_config *cfg)
998998
sprintf(temp, "--file-prefix=container-%s", cfg->dpdk.file_prefix);
999999
dpdk_argv[n++] = strdup(temp);
10001000
}
1001-
if (cfg->dpdk.pci_whitelist) {
1001+
if (cfg->dpdk.allow) {
10021002
char* token;
1003-
char* rest = cfg->dpdk.pci_whitelist;
1003+
char* rest = cfg->dpdk.allow;
10041004

10051005
while ((token = strtok_r(rest, ",", &rest))){
10061006
sprintf(temp, "--allow=%s", token);
10071007
dpdk_argv[n++] = strdup(temp);
10081008
}
1009-
10101009
}
10111010

10121011
if (cfg->dpdk.nb_vdev) {

0 commit comments

Comments
 (0)