net: bcmgenet: correct per TX/RX ring statistics
authorDoug Berger <opendmb@gmail.com>
Thu, 23 Apr 2020 22:44:17 +0000 (15:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:08 +0000 (16:33 +0200)
commit49bbf322316c6de36c8231ddc3864344a91b1b47
treec1d787ed991f2f1c059a77667b6eebf7f077ffc2
parentaa6a14bc4102730f20ca706e2d9ccf0e54884138
net: bcmgenet: correct per TX/RX ring statistics

[ Upstream commit a6d0b83f25073bdf08b8547aeff961a62c6ab229 ]

The change to track net_device_stats per ring to better support SMP
missed updating the rx_dropped member.

The ndo_get_stats method is also needed to combine the results for
ethtool statistics (-S) before filling in the ethtool structure.

Fixes: 37a30b435b92 ("net: bcmgenet: Track per TX/RX rings statistics")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/genet/bcmgenet.c