]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96991d2030ec94315385033ea8bffbca3482e04b
tree1ac0a09641c79cee0e5800c3557ba5c63320b91b
parent1258fde069f5cd9bcabe59bc8e12648c3d1abd9f
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