aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_nic.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
index 8018f483ae45..e82d25a91bc1 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
@@ -753,11 +753,12 @@ static void aq_nic_update_ndev_stats(struct aq_nic_s *self)
753 struct net_device *ndev = self->ndev; 753 struct net_device *ndev = self->ndev;
754 struct aq_stats_s *stats = self->aq_hw_ops->hw_get_hw_stats(self->aq_hw); 754 struct aq_stats_s *stats = self->aq_hw_ops->hw_get_hw_stats(self->aq_hw);
755 755
756 ndev->stats.rx_packets = stats->uprc + stats->mprc + stats->bprc; 756 ndev->stats.rx_packets = stats->dma_pkt_rc;
757 ndev->stats.rx_bytes = stats->ubrc + stats->mbrc + stats->bbrc; 757 ndev->stats.rx_bytes = stats->dma_oct_rc;
758 ndev->stats.rx_errors = stats->erpr; 758 ndev->stats.rx_errors = stats->erpr;
759 ndev->stats.tx_packets = stats->uptc + stats->mptc + stats->bptc; 759 ndev->stats.rx_dropped = stats->dpc;
760 ndev->stats.tx_bytes = stats->ubtc + stats->mbtc + stats->bbtc; 760 ndev->stats.tx_packets = stats->dma_pkt_tc;
761 ndev->stats.tx_bytes = stats->dma_oct_tc;
761 ndev->stats.tx_errors = stats->erpt; 762 ndev->stats.tx_errors = stats->erpt;
762 ndev->stats.multicast = stats->mprc; 763 ndev->stats.multicast = stats->mprc;
763} 764}