flow_dissector: Pull locking up from prog attach callback
authorJakub Sitnicki <jakub@cloudflare.com>
Sun, 31 May 2020 08:28:35 +0000 (10:28 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:21:02 +0000 (15:21 -0700)
commit171526f6fee84de0c39e2b7aa7e666ba0bbfd173
tree1ac0a09641c79cee0e5800c3557ba5c63320b91b
parentfebeb6dff7beafcaf89521f6c8ff7b0adac08d54
flow_dissector: Pull locking up from prog attach callback

Split out the part of attach callback that happens with attach/detach lock
acquired. This structures the prog attach callback in a way that opens up
doors for moving the locking out of flow_dissector and into generic
callbacks for attaching/detaching progs to netns in subsequent patches.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20200531082846.2117903-2-jakub@cloudflare.com
net/core/flow_dissector.c