diff options
| author | Jakub Sitnicki <jakub@cloudflare.com> | 2022-02-09 19:43:33 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2022-02-09 11:40:45 -0800 |
| commit | 2ed0dc5937d38f282841d22c5a5354ec264c7b8d (patch) | |
| tree | 427e6ef1e3229dae55160bdb5c69896f5ddfa7f5 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | 9a69e2b385f443f244a7e8b8bcafe5ccfb0866b4 (diff) | |
| download | linux-2ed0dc5937d38f282841d22c5a5354ec264c7b8d.tar.gz linux-2ed0dc5937d38f282841d22c5a5354ec264c7b8d.tar.bz2 linux-2ed0dc5937d38f282841d22c5a5354ec264c7b8d.zip | |
selftests/bpf: Cover 4-byte load from remote_port in bpf_sk_lookup
Extend the context access tests for sk_lookup prog to cover the surprising
case of a 4-byte load from the remote_port field, where the expected value
is actually shifted by 16 bits.
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220209184333.654927-3-jakub@cloudflare.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
