diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-02-09 12:05:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-11 02:11:51 +0300 |
commit | 84c55f16dcd74af5be525aa9c1878bfaec4e8a7a (patch) | |
tree | 44ca55a8928ce075863b9e2447c263a8ee4b1e7d /drivers/net/mhi/net.c | |
parent | 77e8080e12721c9206aa592aa34985c897ee1a32 (diff) | |
download | linux-84c55f16dcd74af5be525aa9c1878bfaec4e8a7a.tar.xz |
net: mhi: Add rx_length_errors stat
This can be used by proto when packet len is incorrect.
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mhi/net.c')
-rw-r--r-- | drivers/net/mhi/net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mhi/net.c b/drivers/net/mhi/net.c index 58b4b7c096f7..44cbfb39e557 100644 --- a/drivers/net/mhi/net.c +++ b/drivers/net/mhi/net.c @@ -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_errors = u64_stats_read(&mhi_netdev->stats.rx_errors); 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)); do { |