[09/10] examples/pipeline: print the output port packet drop counters

Message ID 20220805220029.1096212-10-cristian.dumitrescu@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series port: implement output port non-blocking behavior |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Cristian Dumitrescu Aug. 5, 2022, 10 p.m. UTC
  Print the output port pacet drop statistics counters.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
 examples/pipeline/cli.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c
index 75c32b9089..2e69698031 100644
--- a/examples/pipeline/cli.c
+++ b/examples/pipeline/cli.c
@@ -2276,10 +2276,14 @@  cmd_pipeline_stats(char **tokens,
 			out_size,
 			" packets %" PRIu64
 			" bytes %" PRIu64
+			" packets dropped %" PRIu64
+			" bytes dropped %" PRIu64
 			" clone %" PRIu64
 			" clonerr %" PRIu64 "\n",
 			stats.n_pkts,
 			stats.n_bytes,
+			stats.n_pkts_drop,
+			stats.n_bytes_drop,
 			stats.n_pkts_clone,
 			stats.n_pkts_clone_err);