Files
kernel/include/linux
Jakub Sitnicki a3fd7ceee0 net: Introduce netns_bpf for BPF programs attached to netns
In order to:

 (1) attach more than one BPF program type to netns, or
 (2) support attaching BPF programs to netns with bpf_link, or
 (3) support multi-prog attach points for netns

we will need to keep more state per netns than a single pointer like we
have now for BPF flow dissector program.

Prepare for the above by extracting netns_bpf that is part of struct net,
for storing all state related to BPF programs attached to netns.

Turn flow dissector callbacks for querying/attaching/detaching a program
into generic ones that operate on netns_bpf. Next patch will move the
generic callbacks into their own module.

This is similar to how it is organized for cgroup with cgroup_bpf.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20200531082846.2117903-3-jakub@cloudflare.com
2020-06-01 15:21:02 -07:00
..
2020-03-31 21:29:04 +02:00
2020-04-10 15:36:21 -07:00
2020-05-04 11:19:58 -07:00
2020-03-27 20:19:24 -03:00
2020-04-30 12:54:01 -07:00
2020-04-10 15:36:21 -07:00
2020-05-05 16:58:36 +02:00
2020-04-07 10:43:38 -07:00
2020-05-29 13:10:39 -07:00
2020-04-02 09:35:27 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:42 -07:00
2020-05-28 11:11:45 -07:00
2020-05-04 09:16:37 -07:00
2020-04-17 06:05:30 -04:00
2020-04-01 12:06:26 -04:00
2020-04-17 06:05:30 -04:00