DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] xenvirt: support dynamic page size
@ 2016-04-18  3:06 Ricardo Salveti
  2016-06-23 10:47 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Salveti @ 2016-04-18  3:06 UTC (permalink / raw)
  To: dev

Fix build failure since PAGE_SIZE is not defined on ARM (multiple values
are possible, so it needs to dynamically get the page size used).

Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
---
 drivers/net/xenvirt/rte_eth_xenvirt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c
index b9638d9..afc0193 100644
--- a/drivers/net/xenvirt/rte_eth_xenvirt.c
+++ b/drivers/net/xenvirt/rte_eth_xenvirt.c
@@ -39,6 +39,9 @@
 #include <sys/mman.h>
 #include <errno.h>
 #include <sys/user.h>
+#ifndef PAGE_SIZE
+#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
+#endif
 #include <linux/binfmts.h>
 #include <xen/xen-compat.h>
 #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00040200
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] xenvirt: support dynamic page size
  2016-04-18  3:06 [dpdk-dev] [PATCH] xenvirt: support dynamic page size Ricardo Salveti
@ 2016-06-23 10:47 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2016-06-23 10:47 UTC (permalink / raw)
  To: Ricardo Salveti; +Cc: dev

On Mon, Apr 18, 2016 at 12:06:06AM -0300, Ricardo Salveti wrote:
> Fix build failure since PAGE_SIZE is not defined on ARM (multiple values
> are possible, so it needs to dynamically get the page size used).
> 
> Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
> ---
>  drivers/net/xenvirt/rte_eth_xenvirt.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c
> index b9638d9..afc0193 100644
> --- a/drivers/net/xenvirt/rte_eth_xenvirt.c
> +++ b/drivers/net/xenvirt/rte_eth_xenvirt.c
> @@ -39,6 +39,9 @@
>  #include <sys/mman.h>
>  #include <errno.h>
>  #include <sys/user.h>
> +#ifndef PAGE_SIZE
> +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
> +#endif
>  #include <linux/binfmts.h>
>  #include <xen/xen-compat.h>
>  #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00040200
> -- 

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-net/rel_16_07

/Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-23 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-18  3:06 [dpdk-dev] [PATCH] xenvirt: support dynamic page size Ricardo Salveti
2016-06-23 10:47 ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).