From 1a7a553c5c03c60595fe1f13d4e3428f94b9c27d Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Wed, 6 Dec 2017 18:09:19 +0100 Subject: 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 --- VNFs/DPPD-PROX/handle_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit 1.2.3-korg