]> git.baikalelectronics.ru Git - kernel.git/commit
can: kvaser_pciefd: kvaser_pciefd_rx_error_frame(): increase correct stats->{rx,tx...
authorJimmy Assarsson <extja@kvaser.com>
Wed, 8 Dec 2021 15:21:21 +0000 (16:21 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 9 Dec 2021 08:01:43 +0000 (09:01 +0100)
commit36aea60fc892ce73f96d45dc7eb239c7c4c1fa69
tree3b95d521aabda77a4379f9011f72970be87c5f8b
parenta50e659b2a1be14784e80f8492aab177e67c53a2
can: kvaser_pciefd: kvaser_pciefd_rx_error_frame(): increase correct stats->{rx,tx}_errors counter

Check the direction bit in the error frame packet (EPACK) to determine
which net_device_stats {rx,tx}_errors counter to increase.

Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
Link: https://lore.kernel.org/all/20211208152122.250852-1-extja@kvaser.com
Cc: stable@vger.kernel.org
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/kvaser_pciefd.c