]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/tcp: Add tcp-md5 and tcp-ao tracepoints
authorDmitry Safonov <0x7f454c46@gmail.com>
Thu, 6 Jun 2024 23:25:58 +0000 (00:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2024 05:39:04 +0000 (06:39 +0100)
commit96be3dcd013df6aa79acf32e739c0a35b89a4f50
tree64d6a3975354f2e7d4efd86736ed2877a01715ec
parent811efc06e5f30a57030451b2d1998aa81273baf8
net/tcp: Add tcp-md5 and tcp-ao tracepoints

Instead of forcing userspace to parse dmesg (that's what currently is
happening, at least in codebase of my current company), provide a better
way, that can be enabled/disabled in runtime.

Currently, there are already tcp events, add hashing related ones there,
too. Rasdaemon currently exercises net_dev_xmit_timeout,
devlink_health_report, but it'll be trivial to teach it to deal with
failed hashes. Otherwise, BGP may trace/log them itself. Especially
exciting for possible investigations is key rotation (RNext_key
requests).

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_ao.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c