]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: Pull BPF program assignment up to bpf-netns
authorJakub Sitnicki <jakub@cloudflare.com>
Thu, 25 Jun 2020 14:13:54 +0000 (16:13 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 30 Jun 2020 17:45:07 +0000 (10:45 -0700)
commitc72d9a60c62cb68e20dfeb34b98046ff3b0199ea
treec2b829b6dbc79ae9646900dbf55e8ea68d847ca8
parent8c38bacd3271ac9914f69b5f9d822ed9c07023d3
flow_dissector: Pull BPF program assignment up to bpf-netns

Prepare for using bpf_prog_array to store attached programs by moving out
code that updates the attached program out of flow dissector.

Managing bpf_prog_array is more involved than updating a single bpf_prog
pointer. This will let us do it all from one place, bpf/net_namespace.c, in
the subsequent patch.

No functional change intended.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200625141357.910330-2-jakub@cloudflare.com
include/net/flow_dissector.h
kernel/bpf/net_namespace.c
net/core/flow_dissector.c