bpf: Change bpf_getsockopt(SOL_IP) to reuse do_ip_getsockopt()
authorMartin KaFai Lau <martin.lau@kernel.org>
Fri, 2 Sep 2022 00:29:25 +0000 (17:29 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 3 Sep 2022 03:34:32 +0000 (20:34 -0700)
commitfd969f25fe24be515278d28cbf86dde39be8a495
treefba3baa39a31da418f7bdecbf2cf7ced787495ec
parent273b7f0fb44847c41814a59901977be284daa447
bpf: Change bpf_getsockopt(SOL_IP) to reuse do_ip_getsockopt()

This patch changes bpf_getsockopt(SOL_IP) to reuse
do_ip_getsockopt() and remove the duplicated code.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220902002925.2895416-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/net/ip.h
net/core/filter.c
net/ipv4/ip_sockglue.c