]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit1d127effdc1750d1f43de42100185430ea0c90bf
tree2f2a9bbf76d2e0c4987009a045a74abeeb13468f
parentf799ada6bf2397c351220088b9b0980125c77280
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