summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2019-03-07 14:46:29 +0100
committerXavier Simonart <xavier.simonart@intel.com>2019-03-07 14:46:29 +0100
commitd813669721c37f0dcbb8f12b950cde7362265c50 (patch)
tree7d20ced16446b0b8d755a7a3332c81e539c0708a /VNFs
parent59b6fae3ea3a61aef90933fd4d9f7fe334b7a0b0 (diff)
Fix minimum latency since reset
Change-Id: Icac622092c35dc197a0f7cb1dcee8afce9f06fa1 Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/DPPD-PROX/handle_lat.c2
-rw-r--r--VNFs/DPPD-PROX/stats_latency.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/handle_lat.c b/VNFs/DPPD-PROX/handle_lat.c
index c7a45b60..93652d47 100644
--- a/VNFs/DPPD-PROX/handle_lat.c
+++ b/VNFs/DPPD-PROX/handle_lat.c
@@ -774,6 +774,8 @@ static void init_task_lat(struct task_base *tbase, struct task_args *targ)
}
}
+ task->lt[0].min_lat = -1;
+ task->lt[1].min_lat = -1;
task->lt[0].bucket_size = targ->bucket_size - LATENCY_ACCURACY;
task->lt[1].bucket_size = targ->bucket_size - LATENCY_ACCURACY;
if (task->unique_id_pos) {
diff --git a/VNFs/DPPD-PROX/stats_latency.c b/VNFs/DPPD-PROX/stats_latency.c
index 52027892..59d00580 100644
--- a/VNFs/DPPD-PROX/stats_latency.c
+++ b/VNFs/DPPD-PROX/stats_latency.c
@@ -142,6 +142,7 @@ static void stats_latency_add_task(struct lcore_cfg *lconf, struct task_args *ta
new_entry->task = (struct task_lat *)targ->tbase;
new_entry->lcore_id = lconf->id;
new_entry->task_id = targ->id;
+ new_entry->tot_lat_test.min_lat = -1;
slm->n_latency++;
}