mem: support page locking on FreeBSD
authorThomas Monjalon <thomas@monjalon.net>
Thu, 15 Jun 2017 17:37:00 +0000 (19:37 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 16 Jun 2017 14:50:41 +0000 (16:50 +0200)
commitfe404930f63c2b4177ccb91e1f296a3d36a80ced
treed350849c5876c00b5918c0ab1c332be7dd7267f8
parentd356de754b5d7b96c90221170001ba811eddca76
mem: support page locking on FreeBSD

The function rte_mem_lock_page() was added for Linux only.
The file eal_common_memory.c is a better place to make it
available in FreeBSD also.

The issue is seen when trying to compile bnxt on FreeBSD:
bnxt_hwrm.c: undefined reference to `rte_mem_lock_page'

Fixes: 3097de6e6bfb ("mem: get physical address of any pointer")

Reported-by: Fangfang Wei <fangfangx.wei@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/linuxapp/eal/eal_memory.c