DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ricardo Salveti <ricardo.salveti@linaro.org>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] xenvirt: support dynamic page size
Date: Thu, 23 Jun 2016 11:47:20 +0100	[thread overview]
Message-ID: <20160623104719.GB5024@bricha3-MOBL3> (raw)
In-Reply-To: <1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org>

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

      reply	other threads:[~2016-06-23 10:47 UTC|newest]

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

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=20160623104719.GB5024@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=ricardo.salveti@linaro.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).