plugins: dpdk: fix check which makes not sense, likely a typo
[vpp.git] / src / plugins / dpdk / buffer.c
index 20036f2..11d8cd7 100644 (file)
@@ -546,7 +546,7 @@ dpdk_pool_create (vlib_main_t * vm, u8 * pool_name, u32 elt_size,
            break;
        }
       /* *INDENT-ON* */
-      if (rv != 0 && rv != EINVAL)
+      if (rv != 0 && errno != EINVAL)
        clib_unix_warning ("ioctl(VFIO_IOMMU_MAP_DMA) pool '%s'", pool_name);
     }