• Jakub Kicinski's avatar
    tcp: add tracepoint for checksum errors · 709c0314
    Jakub Kicinski authored
    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: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    709c0314
tcp.h 9.33 KB