]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a7ebc39180597b8bb01294bc7ee93bd53593dff
tree79716052834fb939fcb957d357f0b9213c9cb5fc
parent7eff110ce2408afd90e3b29bf8b35603305bb034
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