Skip to content

Commit 7f49974

Browse files
authored
Merge pull request #1305 from stevenengler/remove-interface-batch-time
Remove unused '--interface-batch' option
2 parents 913955b + c363a05 commit 7f49974

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/main/core/support/options.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ struct _Options {
3939
gchar* interfaceQueuingDiscipline;
4040
gchar* eventSchedulingPolicy;
4141
gchar* interposeMethod;
42-
SimulationTime interfaceBatchTime;
4342

4443
gboolean pinCPUs;
4544

@@ -76,7 +75,6 @@ Options* options_new(gint argc, gchar* argv[]) {
7675

7776
/* set defaults */
7877
options->interfaceBufferSize = 1024000;
79-
options->interfaceBatchTime = 5000;
8078
options->randomSeed = 1;
8179
options->heartbeatInterval = 1;
8280
options->shouldExitAfterShmCleanup = FALSE;
@@ -139,7 +137,6 @@ Options* options_new(gint argc, gchar* argv[]) {
139137
options->networkOptionGroup = g_option_group_new("sys", "System Options", "Simulated system/network behavior", NULL, NULL);
140138
const GOptionEntry networkEntries[] =
141139
{
142-
{ "interface-batch", 0, 0, G_OPTION_ARG_INT, &(options->interfaceBatchTime), "Batch TIME for network interface sends and receives, in microseconds [5000]", "TIME" },
143140
{ "interface-buffer", 0, 0, G_OPTION_ARG_INT, &(options->interfaceBufferSize), "Size of the network interface receive buffer, in bytes [1024000]", "N" },
144141
{ "interface-qdisc", 0, 0, G_OPTION_ARG_STRING, &(options->interfaceQueuingDiscipline), "The interface queuing discipline QDISC used to select the next sendable socket ('fifo' or 'rr') ['fifo']", "QDISC" },
145142
{ "socket-recv-buffer", 0, 0, G_OPTION_ARG_INT, &(options->initialSocketReceiveBufferSize), sockrecv->str, "N" },
@@ -200,11 +197,6 @@ Options* options_new(gint argc, gchar* argv[]) {
200197
if(options->interfaceBufferSize < CONFIG_MTU) {
201198
options->interfaceBufferSize = CONFIG_MTU;
202199
}
203-
options->interfaceBatchTime *= SIMTIME_ONE_MICROSECOND;
204-
if(options->interfaceBatchTime == 0) {
205-
/* we require at least 1 nanosecond b/c of time granularity */
206-
options->interfaceBatchTime = 1;
207-
}
208200
if(options->interfaceQueuingDiscipline == NULL) {
209201
options->interfaceQueuingDiscipline = g_strdup("fifo");
210202
}
@@ -377,11 +369,6 @@ gint options_getMinRunAhead(Options* options) {
377369
return options->minRunAhead;
378370
}
379371

380-
SimulationTime options_getInterfaceBatchTime(Options* options) {
381-
MAGIC_ASSERT(options);
382-
return options->interfaceBatchTime;
383-
}
384-
385372
gint options_getInterfaceBufferSize(Options* options) {
386373
MAGIC_ASSERT(options);
387374
return options->interfaceBufferSize;

0 commit comments

Comments
 (0)