]> git.baikalelectronics.ru Git - kernel.git/commit
sock_map: Simplify sock_map_link() a bit
authorCong Wang <cong.wang@bytedance.com>
Wed, 31 Mar 2021 02:32:28 +0000 (19:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Apr 2021 17:56:13 +0000 (10:56 -0700)
commit6607f2d3a7552e07ea4d89eba70a166113281ce6
tree74cf7c76ec5d7430e9666b9971a348afdfb7367b
parentfb051e1821e16adde9beabce88e1f8bfe5e35b9e
sock_map: Simplify sock_map_link() a bit

sock_map_link() passes down map progs, but it is confusing
to see both map progs and psock progs. Make the map progs
more obvious by retrieving it directly with sock_map_progs()
inside sock_map_link(). Now it is aligned with
sock_map_link_no_progs() too.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210331023237.41094-8-xiyou.wangcong@gmail.com
net/core/sock_map.c