diff options
author | Xue Chaojing <xuechaojing@huawei.com> | 2019-06-24 05:50:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-24 16:18:11 +0200 |
commit | e54fbbdf5a2944f084b170cd2b7ffdfa00bf3990 (patch) | |
tree | c5ab32f223b45a322d6a3599084fec9b49f62b8f /drivers/net/ethernet/huawei/hinic/hinic_rx.h | |
parent | Merge branch 'ipv6-avoid-taking-refcnt-on-dst-during-route-lookup' (diff) | |
download | linux-e54fbbdf5a2944f084b170cd2b7ffdfa00bf3990.tar.xz linux-e54fbbdf5a2944f084b170cd2b7ffdfa00bf3990.zip |
hinic: implement the statistical interface of ethtool
This patch implement the statistical interface of ethtool, user can use
ethtool -S to show hinic statistics.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_rx.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_rx.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_rx.h b/drivers/net/ethernet/huawei/hinic/hinic_rx.h index 4fa31691d328..507dcbae9085 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_rx.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_rx.h @@ -21,7 +21,10 @@ struct hinic_rxq_stats { u64 pkts; u64 bytes; - + u64 errors; + u64 csum_errors; + u64 other_errors; + u64 alloc_skb_err; struct u64_stats_sync syncp; }; |