summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/dpdk_priv.h
diff options
context:
space:
mode:
authorVladimir Ratnikov <vratnikov@netgate.com>2020-02-13 03:36:21 -0500
committerDamjan Marion <dmarion@me.com>2020-02-13 11:56:43 +0000
commit4e96ddaec8837b8c0bd27a75418e033da68e299b (patch)
treed3ed2d2f7ff1ef998364f452de19c6d287b3e04e /src/plugins/dpdk/device/dpdk_priv.h
parent6ede570259a91cd0c34b9faf9fec7e4ec8275200 (diff)
dpdk: Add iova-mode to startup
In some cases of using vfio-pci driver, it should be required to enable pa or va mode. Without it, rtl_eal_init unable to allocate memory required. Debugging told that iova-mode pa/va could help. And it helps. This patch allows to pass iova-mode to vpp startup.conf Type: feature Change-Id: I36b87f5d3d141891b37cda2c306d50433954a34a Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk_priv.h')
-rw-r--r--src/plugins/dpdk/device/dpdk_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/dpdk_priv.h b/src/plugins/dpdk/device/dpdk_priv.h
index 0b1fe92bf72..a86a1aba7ec 100644
--- a/src/plugins/dpdk/device/dpdk_priv.h
+++ b/src/plugins/dpdk/device/dpdk_priv.h
@@ -47,7 +47,8 @@ _(huge-dir) \
_(proc-type) \
_(file-prefix) \
_(vdev) \
-_(log-level)
+_(log-level) \
+_(iova-mode)
static inline void
dpdk_get_xstats (dpdk_device_t * xd)