MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fwd_stream_stats_display

Function fwd_stream_stats_display

dpdk/app/test-pmd/testpmd.c:1989–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1987}
1988
1989static void
1990fwd_stream_stats_display(streamid_t stream_id)
1991{
1992 struct fwd_stream *fs;
1993 static const char *fwd_top_stats_border = "-------";
1994
1995 fs = fwd_streams[stream_id];
1996 if ((fs->rx_packets == 0) && (fs->tx_packets == 0) &&
1997 (fs->fwd_dropped == 0))
1998 return;
1999 printf("\n %s Forward Stats for RX Port=%2d/Queue=%2d -> "
2000 "TX Port=%2d/Queue=%2d %s\n",
2001 fwd_top_stats_border, fs->rx_port, fs->rx_queue,
2002 fs->tx_port, fs->tx_queue, fwd_top_stats_border);
2003 printf(" RX-packets: %-14"PRIu64" TX-packets: %-14"PRIu64
2004 " TX-dropped: %-14"PRIu64,
2005 fs->rx_packets, fs->tx_packets, fs->fwd_dropped);
2006
2007 /* if checksum mode */
2008 if (cur_fwd_eng == &csum_fwd_engine) {
2009 printf(" RX- bad IP checksum: %-14"PRIu64
2010 " Rx- bad L4 checksum: %-14"PRIu64
2011 " Rx- bad outer L4 checksum: %-14"PRIu64"\n",
2012 fs->rx_bad_ip_csum, fs->rx_bad_l4_csum,
2013 fs->rx_bad_outer_l4_csum);
2014 printf(" RX- bad outer IP checksum: %-14"PRIu64"\n",
2015 fs->rx_bad_outer_ip_csum);
2016 } else {
2017 printf("\n");
2018 }
2019
2020 if (record_burst_stats) {
2021 pkt_burst_stats_display("RX", &fs->rx_burst_stats);
2022 pkt_burst_stats_display("TX", &fs->tx_burst_stats);
2023 }
2024}
2025
2026void
2027fwd_stats_display(void)

Callers 1

fwd_stats_displayFunction · 0.85

Calls 2

pkt_burst_stats_displayFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected