lib/env_dpdk: pass pci whitelist and blacklist options to DPDK correctly
Currently passing pci whitelist and blacklist information to DPDK is done by using single dash option -w and -b, respectively. However this didn't work as reported in the Github issue #362. Hence use two dashes option --pci-whitelist= and --pci-blacklist for pci whitelist and blacklist, respectively. In the Github issue #362, more issues are reported. These will be done in subsequent patches. Change-Id: I4e36edfce90e34577e34605d5b19658554fb2496 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/420211 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
943ceb4144
commit
6082e7560b
@ -274,8 +274,9 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts)
|
|||||||
|
|
||||||
for (i = 0; i < opts->num_pci_addr; i++) {
|
for (i = 0; i < opts->num_pci_addr; i++) {
|
||||||
spdk_pci_addr_fmt(bdf, 32, &pci_addr[i]);
|
spdk_pci_addr_fmt(bdf, 32, &pci_addr[i]);
|
||||||
args = spdk_push_arg(args, &argcount, _sprintf_alloc("%s %s",
|
args = spdk_push_arg(args, &argcount, _sprintf_alloc("%s=%s",
|
||||||
(opts->pci_blacklist ? "-b" : "-w"), bdf));
|
(opts->pci_blacklist ? "--pci-blacklist" : "--pci-whitelist"),
|
||||||
|
bdf));
|
||||||
if (args == NULL) {
|
if (args == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user