bpf: selftests: test skb->tstamp in redirect_neigh
authorMartin KaFai Lau <kafai@fb.com>
Wed, 2 Mar 2022 19:56:41 +0000 (11:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 14:38:49 +0000 (14:38 +0000)
commitc803475fd8ddc9996abd446fdccf5479b3c7b609
treeefbb107a74b1ada4b89011e7331f99daf81227ac
parent8d21ec0e46ed6e39994accff8eb4f2be3d2e76b5
bpf: selftests: test skb->tstamp in redirect_neigh

This patch adds tests on forwarding the delivery_time for
the following cases
- tcp/udp + ip4/ip6 + bpf_redirect_neigh
- tcp/udp + ip4/ip6 + ip[6]_forward
- bpf_skb_set_delivery_time
- The old rcv timestamp expectation on tc-bpf@ingress

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
tools/testing/selftests/bpf/progs/test_tc_dtime.c [new file with mode: 0644]