Skip to content

Conversation

@kernel-patches-bot
Copy link

Pull request for series with
subject: lighten uapi/bpf.h rebuilds
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=601926

@kernel-patches-bot
Copy link
Author

Master branch: 3ccdcee
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=601926
version: 1

@kernel-patches-bot
Copy link
Author

Master branch: 3ccdcee
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=601947
version: 2

@kernel-patches-bot
Copy link
Author

Master branch: 1705c62
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=601947
version: 2

Add missing includes unmasked by the subsequent change.

Mostly network drivers missing an include for XDP_PACKET_HEADROOM.

Signed-off-by: Jakub Kicinski <[email protected]>
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 <[email protected]>
@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=601947 irrelevant now. Closing PR.

@kernel-patches-bot kernel-patches-bot deleted the series/601926=>bpf-next branch December 30, 2021 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants