]> 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)
commit3b77a218b0660d1177f22782ce77e2af9a18b540
treeefbb107a74b1ada4b89011e7331f99daf81227ac
parentf5a4ec052e05f44860a9a0acd66b854e02224dce
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]