49 lines
1.7 KiB
Diff
49 lines
1.7 KiB
Diff
From d5d9e8fe0906f24579b9ff8c24442c235cc1819a Mon Sep 17 00:00:00 2001
|
|
From: Thomas Monjalon <thomas@monjalon.net>
|
|
Date: Mon, 6 Mar 2023 17:13:27 +0100
|
|
Subject: [PATCH] build: clarify configuration without IOVA field in mbuf
|
|
|
|
[ upstream commit d5d9e8fe0906f24579b9ff8c24442c235cc1819a ]
|
|
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The impact of the option "enable_iova_as_pa" is explained for users.
|
|
|
|
Also the code flag "RTE_IOVA_AS_PA" is renamed as "RTE_IOVA_IN_MBUF"
|
|
in order to be more accurate (IOVA mode is decided at runtime),
|
|
and more readable in the code.
|
|
|
|
Similarly the drivers are using the variable "require_iova_in_mbuf"
|
|
instead of "pmd_supports_disable_iova_as_pa" with an opposite meaning.
|
|
By default, it is assumed that drivers require the IOVA field in mbuf.
|
|
The drivers which support removing this field have to declare themselves.
|
|
Some bus drivers are declared compatible.
|
|
|
|
If the option "enable_iova_as_pa" is disabled, the unsupported drivers
|
|
will be listed with the new reason text "requires IOVA in mbuf".
|
|
|
|
Suggested-by: Bruce Richardson <bruce.richardson@intel.com>
|
|
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
|
|
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
|
|
Acked-by: Morten Brørup <mb@smartsharesystems.com>
|
|
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
---
|
|
drivers/net/af_xdp/meson.build | 2 +-
|
|
1 files changed, 81 insertions(+), 67 deletions(-)
|
|
|
|
diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build
|
|
index 979b914bb6..9a8dbb4d49 100644
|
|
--- a/drivers/net/af_xdp/meson.build
|
|
+++ b/drivers/net/af_xdp/meson.build
|
|
@@ -71,4 +71,4 @@ if build
|
|
endif
|
|
endif
|
|
|
|
-pmd_supports_disable_iova_as_pa = true
|
|
+require_iova_in_mbuf = false
|
|
--
|
|
2.33.0
|
|
|