diff options
author | Xue Chaojing <xuechaojing@huawei.com> | 2019-06-24 03:50:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-24 07:18:11 -0700 |
commit | e54fbbdf5a2944f084b170cd2b7ffdfa00bf3990 (patch) | |
tree | c5ab32f223b45a322d6a3599084fec9b49f62b8f /drivers/net/ethernet/huawei/hinic/hinic_rx.h | |
parent | 7d30a7f6424e88c958c19a02f6f54ab8d25919cd (diff) |
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; }; |