diff options
author | 2017-12-14 12:34:44 +0300 | |
---|---|---|
committer | 2017-12-15 12:46:42 -0500 | |
commit | 45cc1c7ad47c4d166d15c7bce449d2de4daef0c5 (patch) | |
tree | 1724443d6b8452f4999549dc2af4497cdf835f64 /drivers | |
parent | net: aquantia: Fill ndev stat couters from hardware (diff) | |
download | linux-45cc1c7ad47c4d166d15c7bce449d2de4daef0c5.tar.gz linux-45cc1c7ad47c4d166d15c7bce449d2de4daef0c5.tar.bz2 linux-45cc1c7ad47c4d166d15c7bce449d2de4daef0c5.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 1 |
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) ndev->stats.tx_packets = stats->uptc + stats->mptc + stats->bptc; ndev->stats.tx_bytes = stats->ubtc + stats->mbtc + stats->bbtc; ndev->stats.tx_errors = stats->erpt; + ndev->stats.multicast = stats->mprc; } void aq_nic_get_link_ksettings(struct aq_nic_s *self, |