diff options
author | Martin KaFai Lau | 2022-09-01 17:28:34 -0700 |
---|---|---|
committer | Alexei Starovoitov | 2022-09-02 20:34:31 -0700 |
commit | 1985320c54dd51ea45641af0c69087347965ff25 (patch) | |
tree | 9f867be816d8769beb2bd255ff855e4f3f017af8 /net/l2tp/Kconfig | |
parent | 728f064cd7ebea8c182e99e6f152c8b4a0a6b071 (diff) |
bpf: net: Avoid do_ip_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_ip_getsockopt()
to use sockopt_{lock,release}_sock() such that a latter patch can
make bpf_getsockopt(SOL_IP) to reuse do_ip_getsockopt().
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220902002834.2891514-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/l2tp/Kconfig')
0 files changed, 0 insertions, 0 deletions