summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorShreyansh Jain <shreyansh.jain@nxp.com>2018-10-15 17:31:54 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-10-16 14:54:25 +0200
commit2f3d633aa593c89c86dfb0e7df75e49ee05ad808 (patch)
tree5337d456a745ff5bfc960e6773a462f9fa380de7 /config
parente74a15694ef1b5744d0a7cc937e23021926741f3 (diff)
downloaddpdk-next-eventdev-2f3d633aa593c89c86dfb0e7df75e49ee05ad808.zip
dpdk-next-eventdev-2f3d633aa593c89c86dfb0e7df75e49ee05ad808.tar.gz
dpdk-next-eventdev-2f3d633aa593c89c86dfb0e7df75e49ee05ad808.tar.xz
common/dpaax: add library for PA/VA translation table
A common library, valid for dpaaX drivers, which is used to maintain a local copy of PA->VA translations. In case of physical addressing mode (one of the option for FSLMC, and only option for DPAA bus), the addresses of descriptors Rx'd are physical. These need to be converted into equivalent VA for rte_mbuf and other similar calls. Using the rte_mem_virt2iova or rte_mem_virt2phy is expensive. This library is an attempt to reduce the overall cost associated with this translation. A small table is maintained, containing continuous entries representing a continguous physical range. Each of these entries stores the equivalent VA, which is fed during mempool creation, or memory allocation/deallocation callbacks. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Diffstat (limited to 'config')
-rw-r--r--config/common_base5
-rw-r--r--config/common_linuxapp5
2 files changed, 10 insertions, 0 deletions
diff --git a/config/common_base b/config/common_base
index 8c7ead6..7f10f72 100644
--- a/config/common_base
+++ b/config/common_base
@@ -140,6 +140,11 @@ CONFIG_RTE_ETHDEV_PROFILE_WITH_VTUNE=n
CONFIG_RTE_ETHDEV_TX_PREPARE_NOOP=n
#
+# Common libraries, before Bus/PMDs
+#
+CONFIG_RTE_LIBRTE_COMMON_DPAAX=n
+
+#
# Compile the Intel FPGA bus
#
CONFIG_RTE_LIBRTE_IFPGA_BUS=y
diff --git a/config/common_linuxapp b/config/common_linuxapp
index 485e146..76b884c 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -29,6 +29,11 @@ CONFIG_RTE_PROC_INFO=y
CONFIG_RTE_LIBRTE_VMBUS=y
CONFIG_RTE_LIBRTE_NETVSC_PMD=y
+#
+# Common libraries, before Bus/PMDs
+#
+CONFIG_RTE_LIBRTE_COMMON_DPAAX=y
+
# NXP DPAA BUS and drivers
CONFIG_RTE_LIBRTE_DPAA_BUS=y
CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=y