Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf: improve trace events in SNAT path #28723

Merged

Commits on Feb 6, 2024

  1. bpf: nat: report pre-SNAT address in trace event

    When applying SNAT to a packet, also report the original source address in
    the subsequent trace event. This helps to associate the internal and
    external view of a connection.
    
    We use the `orig_addr` field in the trace event, which was originally
    introduced back with b3aa583 ("bpf: Report original source IP in TRACE_TO_LXC")
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    7ef0b51 View commit details
    Browse the repository at this point in the history
  2. bpf: nodeport: populate ifindex in NAT trace event

    This helps to clarify the exact origin of a TO_NETWORK trace event.
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    f40f274 View commit details
    Browse the repository at this point in the history