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)
commit961d6c70d886ecc057f6e501db5879feb55db3b3
treec5d8a31a4873c1057ea6b37471ccc970705e2381
parentc4748ff6566b77d236052375747576009a1af1f7
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