bpf, sockmap: Update selftests to use skb_adjust_room
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 2 Oct 2020 01:10:09 +0000 (18:10 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 2 Oct 2020 22:18:39 +0000 (15:18 -0700)
commit91274ca535185813cd5eebfe5a4d3344750c74e3
tree0e3b71801ce68631955667e30bcf1b317d9e80e9
parent18ebe16d10496db795a9930c320c45653207a548
bpf, sockmap: Update selftests to use skb_adjust_room

Instead of working around TLS headers in sockmap selftests use the
new skb_adjust_room helper. This allows us to avoid special casing
the receive side to skip headers.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/160160100932.7052.3646935243867660528.stgit@john-Precision-5820-Tower
tools/testing/selftests/bpf/progs/test_sockmap_kern.h
tools/testing/selftests/bpf/test_sockmap.c