summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2017-12-06 18:09:19 +0100
committerXavier Simonart <xavier.simonart@intel.com>2017-12-06 18:09:19 +0100
commit1a7a553c5c03c60595fe1f13d4e3428f94b9c27d (patch)
tree896e87a89319b40398e5d1105aabf35119632d95
parente430f537cad603a131034d01068af7757142743d (diff)
Fix qos statistics
Packets dropped by QoS (because queues were full) were erroneously shown as idle cycles. There aee now shown as discarded packets. Change-Id: I01a619de621a3dfbfe11cabef257f9dec311e208 Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
-rw-r--r--VNFs/DPPD-PROX/handle_qos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/handle_qos.c b/VNFs/DPPD-PROX/handle_qos.c
index eef64796..142143e7 100644
--- a/VNFs/DPPD-PROX/handle_qos.c
+++ b/VNFs/DPPD-PROX/handle_qos.c
@@ -107,7 +107,7 @@ static inline int handle_qos_bulk(struct task_base *tbase, struct rte_mbuf **mbu
}
int16_t ret = rte_sched_port_enqueue(task->sched_port, mbufs, n_pkts);
task->nb_buffered_pkts += ret;
- TASK_STATS_ADD_IDLE(&task->base.aux->stats, n_pkts - ret);
+ TASK_STATS_ADD_DROP_DISCARD(&task->base.aux->stats, n_pkts - ret);
}
if (task->nb_buffered_pkts) {