]> git.baikalelectronics.ru Git - kernel.git/commit
ax88796c: fix fetching error stats from percpu containers
authorAlexander Lobakin <alobakin@pm.me>
Sat, 23 Oct 2021 12:19:16 +0000 (12:19 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Oct 2021 00:33:16 +0000 (17:33 -0700)
commitf18db5336786b8009a65a03c9e7303a1f31ce63f
treefa33162e97599dee2d4b1cb84c950c42fe05ad27
parentd5a360d24b1c7fbb5fd49e16e7ad4789dccc38a0
ax88796c: fix fetching error stats from percpu containers

rx_dropped, tx_dropped, rx_frame_errors and rx_crc_errors are being
wrongly fetched from the target container rather than source percpu
ones.
No idea if that goes from the vendor driver or was brainoed during
the refactoring, but fix it either way.

Fixes: 9c16820e2f089 ("net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver")
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Acked-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
Link: https://lore.kernel.org/r/20211023121148.113466-1-alobakin@pm.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/asix/ax88796c_main.c