]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: count pause packets together will all other packets
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 28 Jun 2022 08:51:55 +0000 (10:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jun 2022 03:19:05 +0000 (20:19 -0700)
commita1fdc29317e6e94ec75a40875b77f2e375276ea1
treec5d8a31a4873c1057ea6b37471ccc970705e2381
parentf5f74b132233b3238f7551caab88c01563a48ff0
net: dsa: microchip: count pause packets together will all other packets

This switch is calculating tx/rx_bytes for all packets including pause.
So, include rx/tx_pause counter to rx/tx_packets to make tx/rx_bytes fit
to rx/tx_packets.

Link: https://lore.kernel.org/all/20220624220317.ckhx6z7cmzegvoqi@skbuf/
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz_common.c