env_pci: fix device_allow small issue
The dbdf format is xxxx:xx:xx.x and with the wrong format the rte_devargs_parse always fails. Change-Id: Ia34bc5e68f6401bb25907d5d07c65636b4f491b5 Signed-off-by: Jin Yu <jin.yu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7140 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
b69356a85d
commit
0ccf4a9ce6
@ -1092,7 +1092,7 @@ spdk_pci_device_allow(struct spdk_pci_addr *pci_addr)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
snprintf(devargs_str, sizeof(devargs_str), "pci:%04x:%02x:%02x:%x",
|
||||
snprintf(devargs_str, sizeof(devargs_str), "pci:%04x:%02x:%02x.%x",
|
||||
pci_addr->domain, pci_addr->bus, pci_addr->dev, pci_addr->func);
|
||||
if (rte_devargs_parse(da, devargs_str) != 0) {
|
||||
SPDK_ERRLOG("rte_devargs_parse() failed on '%s'\n", devargs_str);
|
||||
|
Loading…
Reference in New Issue
Block a user