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

lighten uapi/bpf.h rebuilds #2345

Closed
wants to merge 3 commits into from

Commits on Dec 30, 2021

  1. adding ci files

    Nobody committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    f8e371d View commit details
    Browse the repository at this point in the history
  2. net: add includes masked by netdevice.h including uapi/bpf.h

    Add missing includes unmasked by the subsequent change.
    
    Mostly network drivers missing an include for XDP_PACKET_HEADROOM.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    kuba-moo authored and Nobody committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    2ccd739 View commit details
    Browse the repository at this point in the history
  3. bpf: invert the dependency between bpf-netns.h and netns/bpf.h

    netns/bpf.h gets included by netdevice.h (thru net_namespace.h)
    which in turn gets included in a lot of places. We should keep
    netns/bpf.h as light-weight as possible.
    
    bpf-netns.h seems to contain more implementation details than
    deserves to be included in a netns header. It needs to pull in
    uapi/bpf.h to get various enum types.
    
    Move enum netns_bpf_attach_type to netns/bpf.h and invert the
    dependency. This makes netns/bpf.h fit the mold of a struct
    definition header more clearly, and drops the number of objects
    rebuilt when uapi/bpf.h is touched from 7.7k to 1.1k.
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    kuba-moo authored and Nobody committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    8558bff View commit details
    Browse the repository at this point in the history