Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
11 changed files
with
672 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2018 NXP | ||
# | ||
|
||
include $(RTE_SDK)/mk/rte.vars.mk | ||
|
||
# | ||
# library name | ||
# | ||
LIB = librte_common_dpaax.a | ||
|
||
CFLAGS += -DALLOW_EXPERIMENTAL_API | ||
CFLAGS += -O3 | ||
CFLAGS += $(WERROR_FLAGS) | ||
|
||
# versioning export map | ||
EXPORT_MAP := rte_common_dpaax_version.map | ||
|
||
# library version | ||
LIBABIVER := 1 | ||
|
||
# | ||
# all source are stored in SRCS-y | ||
# | ||
SRCS-y += dpaax_iova_table.c | ||
|
||
LDLIBS += -lrte_eal | ||
|
||
SYMLINK-y-include += dpaax_iova_table.h | ||
|
||
include $(RTE_SDK)/mk/rte.lib.mk |
Oops, something went wrong.