]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_handle_rxovif(): denote RX overflow message to debug +...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 15 Nov 2021 19:12:05 +0000 (20:12 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 8 Jan 2022 19:17:42 +0000 (20:17 +0100)
commite7311b9afcc4616e3c81358bdfd54c89a1d6a4fe
tree4fcd24b06c9b5ae572ef28be5c4c1d1510c4385a
parentfa6c0f254b5da9ad84839cd20b7e1e03f137af2b
can: mcp251xfd: mcp251xfd_handle_rxovif(): denote RX overflow message to debug + add rate limiting

A RX overflow usually happens during high system load. Printing
overflow messages to the kernel log, which on embedded systems often
is outputted on the serial console, even increases the system load.

To decrease the system load in these situations, denote the messages
to debug level and wrap them with net_ratelimit().

Link: https://lore.kernel.org/all/20220105154300.1258636-7-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c