Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfo on POWER systems.
Fixes:
905215731833 ("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>
/* 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) {