DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ricardo Salveti <ricardo.salveti@linaro.org>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] xenvirt: support dynamic page size
Date: Mon, 18 Apr 2016 00:06:06 -0300	[thread overview]
Message-ID: <1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org> (raw)

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

             reply	other threads:[~2016-04-18  3:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18  3:06 Ricardo Salveti [this message]
2016-06-23 10:47 ` Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org \
    --to=ricardo.salveti@linaro.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).