aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk
diff options
context:
space:
mode:
authorSzymon Sliwa <szs@semihalf.com>2018-04-30 14:47:24 +0200
committerSzymon Sliwa <szs@semihalf.com>2018-04-30 14:52:37 +0200
commit336a00f7911c26da12dbeb9eefe0d38077938269 (patch)
treeb4b9ea6b4995b90fb2ff545bfdaf2ffc4047e85c /src/plugins/dpdk
parentb082324a0ee2cc6611803d71a79321fc75ea1635 (diff)
plugins: dpdk: fix check which makes not sense, likely a typo
Change-Id: If33854f9c32736edf571fb66cdfa759db1c9de25 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r--src/plugins/dpdk/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c
index 20036f2b764..11d8cd7962b 100644
--- a/src/plugins/dpdk/buffer.c
+++ b/src/plugins/dpdk/buffer.c
@@ -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);
}