Re: [PATCH bpf-next 3/3] bpf, netns: Keep a list of attached bpf_link's

2020-06-22 Thread Andrii Nakryiko
On Mon, Jun 22, 2020 at 9:04 AM 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 i

[PATCH bpf-next 3/3] bpf, netns: Keep a list of attached bpf_link's

2020-06-22 Thread Jakub Sitnicki
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 t