summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2019-03-13 04:27:16 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-03-13 04:27:16 +0000
commit08b50dbe2f85cbc5dfcb632099ca26a5c1c5d4ec (patch)
treec3c84b8f3b593628b111553fc27f3d1eec28f894
parent45a6b7ed4e6d6849d95f7c5527976a0f01cb8227 (diff)
parentd813669721c37f0dcbb8f12b950cde7362265c50 (diff)
Merge "Fix minimum latency since reset"
-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++;
}