aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Russkikh <igor.russkikh@aquantia.com>2017-12-14 04:34:44 -0500
committerDavid S. Miller <davem@davemloft.net>2017-12-15 12:46:42 -0500
commit45cc1c7ad47c4d166d15c7bce449d2de4daef0c5 (patch)
tree1724443d6b8452f4999549dc2af4497cdf835f64
parent9f8a2203a542f5f3cdeb17f40250c49bb87aa7e3 (diff)
net: aquantia: Fill in multicast counter in ndev stats from hardware
This metric comes from HW and is also diff-calculated, like other counters Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_nic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
index 307caac68731..b3a5d1fbc713 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
@@ -793,6 +793,7 @@ static void aq_nic_update_ndev_stats(struct aq_nic_s *self)
793 ndev->stats.tx_packets = stats->uptc + stats->mptc + stats->bptc; 793 ndev->stats.tx_packets = stats->uptc + stats->mptc + stats->bptc;
794 ndev->stats.tx_bytes = stats->ubtc + stats->mbtc + stats->bbtc; 794 ndev->stats.tx_bytes = stats->ubtc + stats->mbtc + stats->bbtc;
795 ndev->stats.tx_errors = stats->erpt; 795 ndev->stats.tx_errors = stats->erpt;
796 ndev->stats.multicast = stats->mprc;
796} 797}
797 798
798void aq_nic_get_link_ksettings(struct aq_nic_s *self, 799void aq_nic_get_link_ksettings(struct aq_nic_s *self,