On Wed, Aug 17, 2016 at 04:00:45PM +0200, Daniel Mack wrote:
> Add two pointers for eBPF programs to struct cgroup. These will be used
> to store programs for ingress and egress for accounting and filtering.
> 
> This new feature is guarded by CONFIG_CGROUP_BPF.
...
> +#ifdef CONFIG_CGROUP_BPF
> +     /* used by the networking layer */
> +     struct bpf_prog *bpf_ingress;
> +     struct bpf_prog *bpf_egress;
> +#endif
...
> +config CGROUP_BPF
> +     bool "Enable eBPF programs in cgroups"
> +     depends on BPF_SYSCALL
> +     help
> +       This options allows cgroups to accommodate eBPF programs that
> +       can be used for network traffic filtering and accounting. See
> +       Documentation/networking/filter.txt for more information.
> +

I think this extra config is unnecessary. It makes the code harder to follow.
Anyone turning on bpf syscall and cgroups should be able to have this feature.
Extra config is imo overkill.

Reply via email to