linux/tools/testing/selftests/bpf/progs
Willem de Bruijn f6ad6accaa selftests/bpf: expand test_tc_tunnel with SIT encap
So far, all BPF tc tunnel testcases encapsulate in the same network
protocol. Add an encap testcase that requires updating skb->protocol.

The 6in4 tunnel encapsulates an IPv6 packet inside an IPv4 tunnel.
Verify that bpf_skb_net_grow correctly updates skb->protocol to
select the right protocol handler in __netif_receive_skb_core.

The BPF program should also manually update the link layer header to
encode the right network protocol.

Changes v1->v2
  - improve documentation of non-obvious logic

Signed-off-by: Willem de Bruijn <willemb@google.com>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-04-24 01:32:26 +02:00
..
bpf_flow.c selftests/bpf: run flow dissector tests in skb-less mode 2019-04-23 18:36:34 +02:00
connect4_prog.c
connect6_prog.c
dev_cgroup.c
get_cgroup_id_kern.c
netcnt_prog.c
sample_map_ret0.c
sample_ret0.c
sendmsg4_prog.c
sendmsg6_prog.c
socket_cookie_prog.c
sockmap_parse_prog.c
sockmap_tcp_msg_prog.c
sockmap_verdict_prog.c
test_adjust_tail.c
test_btf_haskv.c
test_btf_nokv.c
test_get_stack_rawtp.c
test_global_data.c bpf, selftest: test global data/bss/rodata sections 2019-04-09 17:05:47 -07:00
test_jhash.h selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_l4lb_noinline.c
test_l4lb.c
test_lirc_mode2_kern.c
test_lwt_ip_encap.c
test_lwt_seg6local.c
test_map_in_map.c tools/bpf: selftests: add map lookup to test_map_in_map bpf prog 2019-02-27 17:03:13 -08:00
test_map_lock.c
test_obj_id.c
test_pkt_access.c
test_pkt_md_access.c
test_queue_map.c
test_select_reuseport_kern.c
test_sk_lookup_kern.c
test_skb_cgroup_id_kern.c
test_skb_ctx.c selftests: bpf: add selftest for __sk_buff context in BPF_PROG_TEST_RUN 2019-04-11 10:21:41 +02:00
test_sock_fields_kern.c bpf: Add an example for bpf_get_listener_sock 2019-03-13 12:04:35 -07:00
test_sockhash_kern.c
test_sockmap_kern.c
test_spin_lock.c
test_stack_map.c
test_stacktrace_build_id.c
test_stacktrace_map.c
test_sysctl_prog.c selftests/bpf: C based test for sysctl and strtoX 2019-04-12 13:54:59 -07:00
test_tc_edt.c selftests: bpf: tc-bpf flow shaping with EDT 2019-03-22 18:16:44 -07:00
test_tc_tunnel.c selftests/bpf: expand test_tc_tunnel with SIT encap 2019-04-24 01:32:26 +02:00
test_tcp_check_syncookie_kern.c selftests/bpf: add tests for bpf_tcp_check_syncookie and bpf_skc_lookup_tcp 2019-03-21 18:59:11 -07:00
test_tcp_estats.c
test_tcpbpf_kern.c selftests/bpf: fix compile errors due to unsync linux/in6.h and netinet/in.h 2019-04-18 16:08:40 -07:00
test_tcpnotify_kern.c selftests/bpf: fix compile errors due to unsync linux/in6.h and netinet/in.h 2019-04-18 16:08:40 -07:00
test_tracepoint.c
test_tunnel_kern.c
test_verif_scale1.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_verif_scale2.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_verif_scale3.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_xdp_meta.c
test_xdp_noinline.c
test_xdp_redirect.c
test_xdp_vlan.c
test_xdp.c
xdp_dummy.c