29 lines
749 B
Diff
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
|
||
|
|