dpdk/0035-PAGE_SIZE-constant-is-not-defined-on-ARM-since-multi.patch
Dirk Mueller 000c38a217 Accepting request 407870 from home:ndas:branches:network
- Added support for aarch64 compilation. 
  [+0035-PAGE_SIZE-constant-is-not-defined-on-ARM-since-multi.patch]
- Disabled aarch64 dpdk-examples package for the time being as it 
  contains lots of Intel specific code.
- Added proper "Group" field for the subpackages .

OBS-URL: https://build.opensuse.org/request/show/407870
OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=11
2016-07-12 09:27:16 +00:00

29 lines
749 B
Diff

From a81e0a0f73a834d2cd8e5fd3237fac85574ad778 Mon Sep 17 00:00:00 2001
From: Nirmoy Das <ndas@suse.de>
Date: Mon, 11 Jul 2016 11:56:27 +0200
Subject: [PATCH] PAGE_SIZE constant is not defined on ARM since multiple
values are possible, so DPDK needs to dynamically get the page size.
---
drivers/net/bnx2x/bnx2x.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c
index 67af5da..766d66b 100644
--- a/drivers/net/bnx2x/bnx2x.c
+++ b/drivers/net/bnx2x/bnx2x.c
@@ -34,6 +34,10 @@
#define BNX2X_PMD_VERSION_MINOR 0
#define BNX2X_PMD_VERSION_PATCH 0
+#ifndef PAGE_SIZE
+#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
+#endif
+
static inline const char *
bnx2x_pmd_version(void)
{
--
2.9.0