]> git.droids-corp.org - dpdk.git/commit
mem: quiet base address hint warning if not requested
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 9 Nov 2020 15:47:48 +0000 (15:47 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 28 Jan 2022 11:06:26 +0000 (12:06 +0100)
commit4042dc2037a1509596f7eb48370185434bad39cc
tree81f1cf837a3fef2abeffeafff1f3dd1a37bbb9d8
parentd91998ff68fe23f351523235e5f37ec679de6b65
mem: quiet base address hint warning if not requested

Any EAL memory allocation often goes through eal_get_virtual_area()
function, which will print a warning whenever the resulting allocation
didn't match the specified address requirements. This is useful for
when we have requested a specific base virtual address, to let the user
know that the mapping has deviated from that address.

However, on Linux, we also have a default base address that's there to
ensure better chances of successful secondary process initialization,
as well as higher likelihood of the virtual areas to fit inside the
IOMMU address width. Because of this default base address, there are
warnings printed even when no base address was explicitly requested,
which can be confusing to the user.

Emit this warning with debug level unless base address was explicitly
requested by the user.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/eal/common/eal_common_memory.c