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: Consistent usage of MARK_MAGIC_ constants #23125

Merged
merged 1 commit into from
Jan 19, 2023

Commits on Jan 16, 2023

  1. bpf: Consistent usage of MARK_MAGIC constants

    We currently use 8 bits of the packet mark to indicate that SNAT was
    already performed. That is more than necessary and inconsistent with
    other users of the packet mark for similar purposes.
    
    This commit changes that to only use 4 bits under the reserved
    MARK_MAGIC_HOST_MASK mask.
    
    Also worth noting that the IPsec comment here is incorrect:
    MARK_MAGIC_KEY_ID is currently unused so it wasn't conflicting with the
    SNAT mark.
    
    Signed-off-by: Paul Chaignon <paul@cilium.io>
    pchaigno committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    23d5ee7 View commit details
    Browse the repository at this point in the history