Commit 84c55f16 authored by Loic Poulain's avatar Loic Poulain Committed by David S. Miller

net: mhi: Add rx_length_errors stat

This can be used by proto when packet len is incorrect.
Signed-off-by: default avatarLoic Poulain <loic.poulain@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 77e8080e
...@@ -9,6 +9,7 @@ struct mhi_net_stats { ...@@ -9,6 +9,7 @@ struct mhi_net_stats {
u64_stats_t rx_bytes; u64_stats_t rx_bytes;
u64_stats_t rx_errors; u64_stats_t rx_errors;
u64_stats_t rx_dropped; u64_stats_t rx_dropped;
u64_stats_t rx_length_errors;
u64_stats_t tx_packets; u64_stats_t tx_packets;
u64_stats_t tx_bytes; u64_stats_t tx_bytes;
u64_stats_t tx_errors; u64_stats_t tx_errors;
......
...@@ -95,6 +95,7 @@ static void mhi_ndo_get_stats64(struct net_device *ndev, ...@@ -95,6 +95,7 @@ static void mhi_ndo_get_stats64(struct net_device *ndev,
stats->rx_bytes = u64_stats_read(&mhi_netdev->stats.rx_bytes); stats->rx_bytes = u64_stats_read(&mhi_netdev->stats.rx_bytes);
stats->rx_errors = u64_stats_read(&mhi_netdev->stats.rx_errors); stats->rx_errors = u64_stats_read(&mhi_netdev->stats.rx_errors);
stats->rx_dropped = u64_stats_read(&mhi_netdev->stats.rx_dropped); stats->rx_dropped = u64_stats_read(&mhi_netdev->stats.rx_dropped);
stats->rx_length_errors = u64_stats_read(&mhi_netdev->stats.rx_length_errors);
} while (u64_stats_fetch_retry_irq(&mhi_netdev->stats.rx_syncp, start)); } while (u64_stats_fetch_retry_irq(&mhi_netdev->stats.rx_syncp, start));
do { do {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment