]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netcons: Add udp send fail statistics to netconsole
authorMaksym Kutsevol <max@kutsevol.com>
Mon, 2 Dec 2024 19:55:08 +0000 (11:55 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Dec 2024 03:16:59 +0000 (19:16 -0800)
commit36de47bfd013f2152860339ca763fcb64c76f9b2
tree62de4b8e68521164b725861221e1b67d5df04304
parenta61b19f4a6586590a9ae6baf2ac4a25a852e547f
netcons: Add udp send fail statistics to netconsole

Enhance observability of netconsole. Packet sends can fail.
Start tracking at least two failure possibilities: ENOMEM and
NET_XMIT_DROP for every target. Stats are exposed via an additional
attribute in CONFIGFS.

The exposed statistics allows easier debugging of cases when netconsole
messages were not seen by receivers, eliminating the guesswork if the
sender thinks that messages in question were sent out.

Stats are not reset on enable/disable/change remote ip/etc, they
belong to the netcons target itself.

Reported-by: Breno Leitao <leitao@debian.org>
Closes: https://lore.kernel.org/all/ZsWoUzyK5du9Ffl+@gmail.com/
Signed-off-by: Maksym Kutsevol <max@kutsevol.com>
Link: https://patch.msgid.link/20241202-netcons-add-udp-send-fail-statistics-to-netconsole-v5-2-70e82239f922@kutsevol.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/netconsole.rst
drivers/net/netconsole.c