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: simplify adding/removing types to alignchecker #24736

Merged
merged 1 commit into from
Apr 4, 2023

Commits on Apr 4, 2023

  1. bpf: simplify adding/removing types to alignchecker

    Types in alignchecker were listed like 'TYPE _n', e.g., 'struct tunnel_key _53',
    so this was simple to add a new type: just add 1 to the last n. However, this
    is not obvious what to do when removing a type: to re-enumerate the remaining
    types or to leave holes? Fix this by using the __COUNTER__ macro. Now a new
    type can be listed as _(TYPE), e.g., '_(struct tunnel_key)', so this simple
    both to add and to remove types.
    
    Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
    aspsk committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    bea74a9 View commit details
    Browse the repository at this point in the history