]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add tracepoint for checksum errors
authorJakub Kicinski <kuba@kernel.org>
Fri, 14 May 2021 20:04:25 +0000 (13:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:26:03 +0000 (15:26 -0700)
commit205c2b62559219558877719dbe15c2f0087f42fc
tree0a773304deb90df6e99174cff10593912f151830
parentbb0ae926dc7b20bf1067dcae90240451098094ea
tcp: add tracepoint for checksum errors

Add a tracepoint for capturing TCP segments with
a bad checksum. This makes it easy to identify
sources of bad frames in the fleet (e.g. machines
with faulty NICs).

It should also help tools like IOvisor's tcpdrop.py
which are used today to get detailed information
about such packets.

We don't have a socket in many cases so we must
open code the address extraction based just on
the skb.

v2: add missing export for ipv6=m

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/tcp.h
net/core/net-traces.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c