]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: add a test case for mirred egress to ingress
authorDavide Caratti <dcaratti@redhat.com>
Fri, 12 Nov 2021 16:33:12 +0000 (11:33 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 17 Nov 2021 03:17:38 +0000 (19:17 -0800)
commit1866b30f28e0205de99e7dae92cba1290cec48e7
tree2f2a9bbf76d2e0c4987009a045a74abeeb13468f
parent375bb29ad69f19561f70073f1ed53cb316271ee9
selftests: add a test case for mirred egress to ingress

add a selftest that verifies the correct behavior of TC act_mirred egress
to ingress: in particular, it checks if the dst_entry is removed from skb
before redirect egress -> ingress. The correct behavior is: an ICMP 'echo
request' generated by ping will be received and generate a reply the same
way as the one generated by mausezahn.

Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Cong Wang <cong.wang@bytedance.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/config
tools/testing/selftests/net/forwarding/tc_actions.sh