Skip to content

Commit b2af5aa

Browse files
Krishna Ttmon-nordic
authored andcommitted
[nrf fromtree] net: shell: Log missing Ethernet errors
These error counters are helpful for data path debugging. Signed-off-by: Krishna T <[email protected]> (cherry picked from commit 92aa0e8)
1 parent f77d8ec commit b2af5aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

subsys/net/ip/net_shell.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,14 @@ static void print_eth_stats(struct net_if *iface, struct net_stats_eth *data,
853853
PR("Mcast received : %u\n", data->multicast.rx);
854854
PR("Mcast sent : %u\n", data->multicast.tx);
855855

856+
PR("Send errors : %u\n", data->errors.tx);
857+
PR("Receive errors : %u\n", data->errors.rx);
858+
PR("Collisions : %u\n", data->collisions);
859+
PR("Send Drops : %u\n", data->tx_dropped);
860+
PR("Send timeouts : %u\n", data->tx_timeout_count);
861+
PR("Send restarts : %u\n", data->tx_restart_queue);
862+
PR("Unknown protocol : %u\n", data->unknown_protocol);
863+
856864
#if defined(CONFIG_NET_STATISTICS_ETHERNET_VENDOR)
857865
if (data->vendor) {
858866
PR("Vendor specific statistics for Ethernet "

0 commit comments

Comments
 (0)