]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC
authorWillem de Bruijn <willemb@google.com>
Fri, 22 Mar 2019 18:32:58 +0000 (14:32 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 20:52:45 +0000 (13:52 -0700)
commitd6ad792a0e64a124bd3e73913b6aa6eb400299d5
treeae38689ac20f4f963741428327536efc34fa8393
parent3d649c6812e7b61acbb32841086977c3ab189292
selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC

Avoid moving the network layer header when prefixing tunnel headers.

This avoids an explicit call to bpf_skb_store_bytes and an implicit
move of the network header bytes in bpf_skb_adjust_room.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_tc_tunnel.c