From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 61624C4B4 for ; Thu, 23 Jun 2016 12:47:23 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 23 Jun 2016 03:47:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,509,1459839600"; d="scan'208";a="127199418" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.161]) by fmsmga004.fm.intel.com with SMTP; 23 Jun 2016 03:47:20 -0700 Received: by (sSMTP sendmail emulation); Thu, 23 Jun 2016 11:47:20 +0025 Date: Thu, 23 Jun 2016 11:47:20 +0100 From: Bruce Richardson To: Ricardo Salveti Cc: dev@dpdk.org Message-ID: <20160623104719.GB5024@bricha3-MOBL3> References: <1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] xenvirt: support dynamic page size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 10:47:23 -0000 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 > --- > 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 > #include > #include > +#ifndef PAGE_SIZE > +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE) > +#endif > #include > #include > #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00040200 > -- Acked-by: Bruce Richardson Applied to dpdk-next-net/rel_16_07 /Bruce