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: misc cleanups #24291

Merged
merged 2 commits into from
Mar 13, 2023
Merged

bpf: misc cleanups #24291

merged 2 commits into from
Mar 13, 2023

Commits on Mar 10, 2023

  1. bpf: nodeport: clean up a fib_redirect() in tail_nodeport_nat_egress_…

    …ipv4()
    
    This code path is IPv4-only. So prefer fib_redirect_v4() over the
    generic fib_redirect().
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    4c6c00c View commit details
    Browse the repository at this point in the history
  2. bpf: clean up NAT target address

    Initialize target.addr along with the other fields of the ipv*_nat_target,
    and clarify that it's not actually 0 for nodeport_snat_fwd_ipv4().
    
    This also let's us collapse two TUNNEL_MODE sections in
    tail_nodeport_nat_egress_ipv4() into one.
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    4ad4ab9 View commit details
    Browse the repository at this point in the history