flow_dissector: Move out netns_bpf prog callbacks
authorJakub Sitnicki <jakub@cloudflare.com>
Sun, 31 May 2020 08:28:37 +0000 (10:28 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:21:02 +0000 (15:21 -0700)
commitb27f7bb590ba835b32ef122389db158e44cfda1e
tree79716052834fb939fcb957d357f0b9213c9cb5fc
parenta3fd7ceee05431d2c51ed86c6cae015d236a51f0
flow_dissector: Move out netns_bpf prog callbacks

Move functions to manage BPF programs attached to netns that are not
specific to flow dissector to a dedicated module named
bpf/net_namespace.c.

The set of functions will grow with the addition of bpf_link support for
netns attached programs. This patch prepares ground by creating a place
for it.

This is a code move with no functional changes intended.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200531082846.2117903-4-jakub@cloudflare.com
include/net/flow_dissector.h
kernel/bpf/Makefile
kernel/bpf/net_namespace.c [new file with mode: 0644]
net/core/flow_dissector.c