From e63c364c3c9d954afe35501372f86e3ab3b4ee29 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Thu, 2 Mar 2023 10:59:55 +0800 Subject: [PATCH] Modify `pci_whitelist` to `allow` that from DPDK 20.11. Close #745. --- config.ini | 4 ++-- lib/ff_config.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.ini b/config.ini index 2003e9b33..5d2f82f7e 100644 --- a/config.ini +++ b/config.ini @@ -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 # diff --git a/lib/ff_config.c b/lib/ff_config.c index 3b24b8049..4f3cb2011 100644 --- a/lib/ff_config.c +++ b/lib/ff_config.c @@ -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); }