From 585612f163e1d434d9a21632d157dced5dc4a8c6 Mon Sep 17 00:00:00 2001 From: Patrice Buriez Date: Wed, 12 Jun 2019 18:39:15 +0200 Subject: Add "total TX fail" count to "dp core stats" command output Warning: This change breaks backward-compatibility of PROX socket scripting API, because the "total TX fail" count is reported before the "last TSC" field. As a result, PROX scripts that make use of the "dp core stats" command, such as the core_stats() method in helper-scripts/openstackrapid/prox_ctrl.py, MUST be reworked to correctly parse the returned set of fields. Change-Id: I3fe7f37dccee19f5f0b2719f262c6cfa7bad850f Signed-off-by: Xavier Simonart Signed-off-by: Patrice Buriez --- VNFs/DPPD-PROX/stats_task.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'VNFs/DPPD-PROX/stats_task.c') diff --git a/VNFs/DPPD-PROX/stats_task.c b/VNFs/DPPD-PROX/stats_task.c index 2aed7720..3f138982 100644 --- a/VNFs/DPPD-PROX/stats_task.c +++ b/VNFs/DPPD-PROX/stats_task.c @@ -73,6 +73,11 @@ uint64_t stats_core_task_tot_tx(uint8_t lcore_id, uint8_t task_id) return lcore_task_stats_all[lcore_id].task_stats[task_id].tot_tx_pkt_count; } +uint64_t stats_core_task_tot_tx_fail(uint8_t lcore_id, uint8_t task_id) +{ + return lcore_task_stats_all[lcore_id].task_stats[task_id].tot_drop_tx_fail; +} + uint64_t stats_core_task_tot_drop(uint8_t lcore_id, uint8_t task_id) { return lcore_task_stats_all[lcore_id].task_stats[task_id].tot_drop_tx_fail + -- cgit 1.2.3-korg