On Thu, Jun 25, 2020 at 04:13:56PM +0200, Jakub Sitnicki wrote: > To support multi-prog link-based attachments for new netns attach types, we > need to keep track of more than one bpf_link per attach type. Hence, > convert net->bpf.links into a list, that currently can be either empty or > have just one item. > > Instead of reusing bpf_prog_list from bpf-cgroup, we link together > bpf_netns_link's themselves. This makes list management simpler as we don't > have to allocate, initialize, and later release list elements. We can do > this because multi-prog attachment will be available only for bpf_link, and > we don't need to build a list of programs attached directly and indirectly > via links. Acked-by: Martin KaFai Lau <ka...@fb.com>
- [PATCH bpf-next v3 0/4] bpf, netns: Prepare for multi-pro... Jakub Sitnicki
- [PATCH bpf-next v3 1/4] flow_dissector: Pull BPF pro... Jakub Sitnicki
- Re: [PATCH bpf-next v3 1/4] flow_dissector: Pull... Martin KaFai Lau
- [PATCH bpf-next v3 4/4] selftests/bpf: Test updating... Jakub Sitnicki
- Re: [PATCH bpf-next v3 4/4] selftests/bpf: Test ... Martin KaFai Lau
- [PATCH bpf-next v3 3/4] bpf, netns: Keep a list of a... Jakub Sitnicki
- Re: [PATCH bpf-next v3 3/4] bpf, netns: Keep a l... Martin KaFai Lau
- [PATCH bpf-next v3 2/4] bpf, netns: Keep attached pr... Jakub Sitnicki
- Re: [PATCH bpf-next v3 2/4] bpf, netns: Keep att... Andrii Nakryiko
- Re: [PATCH bpf-next v3 2/4] bpf, netns: Keep... Jakub Sitnicki
- Re: [PATCH bpf-next v3 2/4] bpf, netns: ... Andrii Nakryiko
- Re: [PATCH bpf-next v3 2/4] bpf, ne... Andrii Nakryiko
- Re: [PATCH bpf-next v3 2/4] bpf, netns: Keep att... Martin KaFai Lau
- Re: [PATCH bpf-next v3 2/4] bpf, netns: Keep... Jakub Sitnicki