]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0157dc4293bc6678729c8809cd2e81226e13dd77
treeefbb107a74b1ada4b89011e7331f99daf81227ac
parent8379e72a202e893d76f7118ea97513d46f67e860
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]