aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2022-09-02 00:29:37 +0000
committerAlexei Starovoitov <[email protected]>2022-09-03 03:34:32 +0000
commitf649f992deeeab020257b886e054cc407154cbfc (patch)
tree7a922ac6e0db46244b5f47744066af73b75adc2a /drivers/usb/cdns3/cdns3-plat.c
parentbpf: Change bpf_getsockopt(SOL_IPV6) to reuse do_ipv6_getsockopt() (diff)
downloadkernel-f649f992deeeab020257b886e054cc407154cbfc.tar.gz
kernel-f649f992deeeab020257b886e054cc407154cbfc.zip
selftest/bpf: Add test for bpf_getsockopt()
This patch removes the __bpf_getsockopt() which directly reads the sk by using PTR_TO_BTF_ID. Instead, the test now directly uses the kernel bpf helper bpf_getsockopt() which supports all the required optname now. TCP_SAVE[D]_SYN and TCP_MAXSEG are not tested in a loop for all the hooks and sock_ops's cb. TCP_SAVE[D]_SYN only works in passive connection. TCP_MAXSEG only works when it is setsockopt before the connection is established and the getsockopt return value can only be tested after the connection is established. Signed-off-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions