]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: forwarding: mirror_gre_nh: Unset rp_filter on host VRF
authorPetr Machata <petrm@mellanox.com>
Tue, 10 Jul 2018 12:44:26 +0000 (14:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:59:27 +0000 (23:59 -0700)
commit42801298386c7c261f376a7f08446b2633fe7bc2
tree1d181c2928a7872aacf5b9c48b935defbff5fbd1
parentd90a5215c8ff7f665336d404a56f26c320b9dd73
selftests: forwarding: mirror_gre_nh: Unset rp_filter on host VRF

The mirrored packets arrive at $h3 encapsulated in GRE/IPv4, with IP
address from 192.0.2.128/28 network. However the interface is configured
as a member of 192.0.2.160/28 and there's no route directing traffic
from the former network through that interface. Correspondingly, the RP
filter on the VRF rejects it.

Therefore turn off the VRF's RP filter.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_nh.sh