From: Robert Shearman Date: Tue, 6 Jul 2021 08:59:06 +0000 (+0100) Subject: dpdk: add base-virtaddr config option X-Git-Tag: v22.02-rc0~214 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e3ef3f6aea261c4b1a8d599cc1e76cbe8a4a670f;p=vpp.git dpdk: add base-virtaddr config option Type: improvement Allow the use of the base-virtaddr config option to be passed through to DPDK. This is useful to allow use of devices with an IOMMU in nested VMs without resorting to PA IOVA mode. Signed-off-by: Robert Shearman Change-Id: I32b6513377e6d20bf155e12c45f902d51ea982c4 --- diff --git a/src/plugins/dpdk/device/dpdk_priv.h b/src/plugins/dpdk/device/dpdk_priv.h index 46b87512bb8..a5a8a2ad57d 100644 --- a/src/plugins/dpdk/device/dpdk_priv.h +++ b/src/plugins/dpdk/device/dpdk_priv.h @@ -40,6 +40,7 @@ _(nchannels, n) \ _(mem-alloc-request, m) \ _(force-ranks, r) +/* clang-format off */ /* These args are preceded by "--" and followed by a single string */ #define foreach_eal_double_hyphen_arg \ _(huge-dir) \ @@ -47,7 +48,9 @@ _(proc-type) \ _(file-prefix) \ _(vdev) \ _(log-level) \ -_(iova-mode) +_(iova-mode) \ +_(base-virtaddr) +/* clang-format on */ static inline void dpdk_get_xstats (dpdk_device_t * xd)