From: Ricardo Salveti Date: Mon, 18 Apr 2016 03:06:06 +0000 (-0300) Subject: net/xenvirt: support dynamic page size X-Git-Tag: spdx-start~6431 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c9c9a53927ba82174629be46fa05b2ba839cdf46;p=dpdk.git net/xenvirt: support dynamic page size PAGE_SIZE constant is not defined on ARM since multiple values are possible, so DPDK needs to dynamically get the page size. Signed-off-by: Ricardo Salveti Acked-by: Bruce Richardson --- diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c index 1adeb5bccc..3e45808f8c 100644 --- a/drivers/net/xenvirt/rte_eth_xenvirt.c +++ b/drivers/net/xenvirt/rte_eth_xenvirt.c @@ -39,6 +39,9 @@ #include #include #include +#ifndef PAGE_SIZE +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE) +#endif #include #include #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00040200