summaryrefslogtreecommitdiffstats
path: root/src/vnf/virtio-user-ping/02-fix-nohuge-option.patch
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-08-01 11:11:01 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-08-01 11:12:11 -0700
commitf9154df2f80bfb343b58016ad81cff5ae0b44cd3 (patch)
tree855aabc5bc097320643fedb798626ce565e0156f /src/vnf/virtio-user-ping/02-fix-nohuge-option.patch
parentdc766e69c0c08c55b6df2384bbcfd1e712f03160 (diff)
Add ping vnf using vhost-user & virtio-user
Change-Id: If1138e90dd5ebf3c4748dc9cc998c93bb037c4c7 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vnf/virtio-user-ping/02-fix-nohuge-option.patch')
-rw-r--r--src/vnf/virtio-user-ping/02-fix-nohuge-option.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/vnf/virtio-user-ping/02-fix-nohuge-option.patch b/src/vnf/virtio-user-ping/02-fix-nohuge-option.patch
new file mode 100644
index 0000000..3243eaf
--- /dev/null
+++ b/src/vnf/virtio-user-ping/02-fix-nohuge-option.patch
@@ -0,0 +1,19 @@
+Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
+---
+ lib/librte_eal/bsdapp/eal/eal.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 05f0c1f..b62ef69 100644
+--- a/lib/librte_eal/bsdapp/eal/eal.c
++++ b/lib/librte_eal/bsdapp/eal/eal.c
+@@ -546,9 +546,7 @@ rte_eal_init(int argc, char **argv)
+ }
+
+ if (internal_config.memory == 0 && internal_config.force_sockets == 0) {
+- if (internal_config.no_hugetlbfs)
+- internal_config.memory = MEMSIZE_IF_NO_HUGE_PAGE;
+- else
++ if (!internal_config.no_hugetlbfs)
+ internal_config.memory = eal_get_hugepage_mem_size();
+ }
+