bus/pci: fix IOVA as VA support for PowerNV
Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfo on POWER systems.
Fixes: 9052157318
("bus/pci: support IOVA as VA on PowerNV systems")
Cc: stable@dpdk.org
Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
18f0b28eec
commit
cc4219d1f0
@ -569,7 +569,7 @@ pci_device_iommu_support_va(__rte_unused const struct rte_pci_device *dev)
|
||||
|
||||
/* Check for a PowerNV platform */
|
||||
while (getline(&line, &len, fp) != -1) {
|
||||
if (strstr(line, "platform") != NULL)
|
||||
if (strstr(line, "platform") == NULL)
|
||||
continue;
|
||||
|
||||
if (strstr(line, "PowerNV") != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user