summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-05-03 16:40:02 +0200
committerJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-05-03 16:40:02 +0200
commit7e293de7452ee09c9e54a623f7f19702448756ad (patch)
tree4404d15c7a16ab5eea1dc831258eccc64218f7ae
parent48a3059a71e3573011cc124d954fdcbf4829a93f (diff)
downloaddpdk-burst-replay-7e293de7452ee09c9e54a623f7f19702448756ad.zip
dpdk-burst-replay-7e293de7452ee09c9e54a623f7f19702448756ad.tar.gz
dpdk-burst-replay-7e293de7452ee09c9e54a623f7f19702448756ad.tar.xz
Remove the dirty and temporary --increase-hugepages-nb cmdline option (which is not needed anymore).wip-big-mempool-allocation
-rw-r--r--src/main.c18
-rw-r--r--src/main.h1
2 files changed, 0 insertions, 19 deletions
diff --git a/src/main.c b/src/main.c
index ebe7a2b..8b33aea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,11 +28,6 @@ void usage(void)
/* TODO: */
/* "[--maxbitrate bitrate]|[--normalspeed] : bitrate not to be exceeded (default: no limit) in ko/s.\n" */
/* " specify --normalspeed to replay the trace with the good timings." */
- "\n/!\\ Dirty and temporary hack option:\n"
- "--increase-hugepages-nb NB: will increase the amount of hugepages to be\n"
- " used by the application to cache packets. Can be used if you got an \n"
- " \"RTE Mempool creation failed\" error. 3 should be enough. /!\\ Temporary \n"
- " option. Will be deleted once it will no longer be needed"
);
return ;
}
@@ -127,18 +122,6 @@ int parse_options(const int ac, char** av, struct cmd_opts* opts)
continue;
}
- /* --increase-hugepages-nb nb */
- if (!strcmp(av[i], "--increase-hugepages-nb")) {
- /* if no nb is specified */
- if (i + 1 >= ac - 2)
- return (ENOENT);
- opts->increase_hugepages_nb = atoi(av[i + 1]);
- if (opts->increase_hugepages_nb < 0)
- return (EPROTO);
- i++;
- continue;
- }
-
/* --wait-enter */
if (!strcmp(av[i], "--wait-enter")) {
opts->wait = 1;
@@ -220,7 +203,6 @@ int check_needed_memory(const struct cmd_opts* opts, const struct pcap_ctx* pcap
dpdk->pool_sz = needed_mem / (float)(1024*1024*1024) + 1;
else
dpdk->pool_sz = needed_mem / (1024*1024*1024);
- dpdk->pool_sz += opts->increase_hugepages_nb;
printf("-> Needed Hugepages of 1 Go = %lu\n", dpdk->pool_sz);
return (0);
}
diff --git a/src/main.h b/src/main.h
index 4b47534..e1265e2 100644
--- a/src/main.h
+++ b/src/main.h
@@ -45,7 +45,6 @@ struct cmd_opts {
unsigned int maxbitrate;
int wait;
char* trace;
- int increase_hugepages_nb;
};
/* struct to store the cpus context */