selftests/bpf: test BPF_SOCK_OPS_RTT_CB
authorStanislav Fomichev <sdf@google.com>
Tue, 2 Jul 2019 16:14:01 +0000 (09:14 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Jul 2019 14:52:02 +0000 (16:52 +0200)
commitb55873984dab0eda6db00d19db4c43dce5c11d98
tree6fdc9d2604935097400c1ffb1148aeeaede3fedd
parent692cbaa99fe446ed30bfb7e53fb2b4cc518331a1
selftests/bpf: test BPF_SOCK_OPS_RTT_CB

Make sure the callback is invoked for syn-ack and data packet.

Cc: Eric Dumazet <edumazet@google.com>
Cc: Priyaranjan Jha <priyarjha@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/progs/tcp_rtt.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_tcp_rtt.c [new file with mode: 0644]