Modify `pci_whitelist` to `allow` that from DPDK 20.11. Close #745.

This commit is contained in:
fengbojiang 2023-03-02 10:59:55 +08:00
parent 9e149018e3
commit 8020e2669c
2 changed files with 3 additions and 3 deletions

View File

@ -40,9 +40,9 @@ symmetric_rss=0
# PCI device enable list.
# And driver options
#pci_whitelist=02:00.0
#allow=02:00.0
# for multiple PCI devices
#pci_whitelist=02:00.0,03:00.0
#allow=02:00.0,03:00.0
# enabled port list
#

View File

@ -783,7 +783,7 @@ dpdk_args_setup(struct ff_config *cfg)
char* rest = cfg->dpdk.pci_whitelist;
while ((token = strtok_r(rest, ",", &rest))){
sprintf(temp, "--pci-whitelist=%s", token);
sprintf(temp, "--allow=%s", token);
dpdk_argv[n++] = strdup(temp);
}