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: lb: minor cleanups #26216

Merged
merged 3 commits into from
Jun 16, 2023
Merged

Commits on Jun 14, 2023

  1. bpf: lb: clean up saddr handling in __lb*_rev_nat()

    As workaround for older kernels, we currently copy the new_saddr from the
    NAT entry to a temporary stack variable.
    
    But with the bump to kernel 4.19 this is no longer needed, we can just
    access the NAT entry directly.
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    59bcb2b View commit details
    Browse the repository at this point in the history
  2. bpf: lb: clean up __lb4_rev_nat()

    Group all the code together that handles the rewrite for the L4 header.
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    3c30e76 View commit details
    Browse the repository at this point in the history
  3. bpf: lb: remove redundant reset of key->backend_slot

    For better or worse, lb*_lookup_service() already does this for us.
    
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    julianwiedmann committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    943a15c View commit details
    Browse the repository at this point in the history