]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita351cac016eb35604e9627a7b6f9548a06ea5b4a
tree0e3b71801ce68631955667e30bcf1b317d9e80e9
parent81dddf5c18587cd852d7697d939bf3c35ae54634
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