]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:21 +0000 (21:47 +0100)
commit13b9e7abb17c7ac3d1538af3360c2376bea767c6
treeed36a2560a63cade11ee714fc4e9af50eff67561
parent58c6ee855ada22e519bff0178700afc198783d9d
can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM

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>
drivers/net/can/rx-offload.c