summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/huawei/hinic/hinic_rx.h
diff options
context:
space:
mode:
authorXue Chaojing <xuechaojing@huawei.com>2019-06-24 03:50:12 +0000
committerDavid S. Miller <davem@davemloft.net>2019-06-24 07:18:11 -0700
commite54fbbdf5a2944f084b170cd2b7ffdfa00bf3990 (patch)
treec5ab32f223b45a322d6a3599084fec9b49f62b8f /drivers/net/ethernet/huawei/hinic/hinic_rx.h
parent7d30a7f6424e88c958c19a02f6f54ab8d25919cd (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.h5
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;
};