summaryrefslogtreecommitdiff
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <martin.lau@kernel.org>2022-09-02 03:28:21 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-09-03 06:34:31 +0300
commitd51bbff2aba7880c669e3ed1b4a5a64fed684bf0 (patch)
tree9c69a298f91a5f6056782c9b35bd4f5218e32b5e /net/ipv4/ipmr.c
parent34704ef024ae6167c7ae9e67f671eb6bc1962c90 (diff)
downloadlinux-d51bbff2aba7880c669e3ed1b4a5a64fed684bf0.tar.xz
bpf: net: Avoid do_tcp_getsockopt() taking sk lock when called from bpf
Similar to the earlier commit that changed sk_setsockopt() to use sockopt_{lock,release}_sock() such that it can avoid taking lock when called from bpf. This patch also changes do_tcp_getsockopt() to use sockopt_{lock,release}_sock() such that a latter patch can make bpf_getsockopt(SOL_TCP) to reuse do_tcp_getsockopt(). Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20220902002821.2889765-1-kafai@fb.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/ipv4/ipmr.c')
0 files changed, 0 insertions, 0 deletions