mem: get dummy physical address in case of --no-huge with bsd
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 25 Apr 2014 11:59:48 +0000 (13:59 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 29 Apr 2014 23:28:19 +0000 (01:28 +0200)
commit9a9f7f8d3a198bdb000dfb9472f1efac4b6f1010
tree206bb2577b66357d1e6c90ac43e05b031670542d
parenteca9a994bcf56bbb5ef6c582c5ef915051371901
mem: get dummy physical address in case of --no-huge with bsd

The bsdapp part was missing in commit 57c24af85d9eaa81549a212169605b4e2468a29f.

This commit adds a dummy rte_mem_virt2phy() to fix the compilation of
DPDK under BSD. This function is only used when the debug option
"--no-huge" is given, to get the physical address of mempools in memory.

As a result, it seems acceptable for now to implement a dummy function
to fix the compilation as the usual case (using contigmem module) works
properly.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/bsdapp/eal/eal_memory.c