can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 9 Oct 2019 13:15:07 +0000 (15:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:00 +0000 (15:37 +0100)
commit8c7dd979e1f70beece01e1fbd6006e1a4a81e880
tree274d854d020df1edd530a510cb119beeae2c1f8e
parentb3cc7954719dfdc37d14bab5377d74de73630316
can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM

[ Upstream commit 4e9016bee3bf0c24963097edace034ff205b565c ]

If the rx-offload skb_queue is full or the skb allocation fails (due to OOM),
the mailbox contents is discarded.

This patch adds the incrementing of the rx_fifo_errors statistics counter.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/rx-offload.c