OSDN Git Service

net: bcmgenet: correct per TX/RX ring statistics
authorDoug Berger <opendmb@gmail.com>
Thu, 23 Apr 2020 22:44:17 +0000 (15:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 23:02:05 +0000 (16:02 -0700)
commita6d0b83f25073bdf08b8547aeff961a62c6ab229
tree439f7a408cef772f63d7a608b6b527fb75a1b729
parent9d3cdd446e702f8c177b2d029fc72676e61a4ae8
net: bcmgenet: correct per TX/RX ring statistics

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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c