summaryrefslogtreecommitdiffstats
path: root/src/vnf/virtio-user-ping/02-fix-nohuge-option.patch
diff options
context:
space:
mode:
authorXuan Jia <jason.jiaxuan@gmail.com>2017-08-03 13:33:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-03 13:33:03 +0000
commit5812982c9b2c84aaa6bba36ac6a06ed025dd7e10 (patch)
tree6bee228fc9f6e9fc91aab144dd56b282748521f7 /src/vnf/virtio-user-ping/02-fix-nohuge-option.patch
parentd14bcec5cbfaa1972fafdd3e1ad849f1014a4360 (diff)
parentf9154df2f80bfb343b58016ad81cff5ae0b44cd3 (diff)
Merge "Add ping vnf using vhost-user & virtio-user"
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();
+ }
+