Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Petr Machata and committed by
David S. Miller
42801298 d90a5215

+4
+4
tools/testing/selftests/net/forwarding/mirror_gre_nh.sh
··· 35 35 vrf_prepare 36 36 mirror_gre_topo_create 37 37 38 + sysctl_set net.ipv4.conf.v$h3.rp_filter 0 39 + 38 40 ip address add dev $swp3 192.0.2.161/28 39 41 ip address add dev $h3 192.0.2.162/28 40 42 ip address add dev gt4 192.0.2.129/32 ··· 62 60 63 61 ip address del dev $h3 192.0.2.162/28 64 62 ip address del dev $swp3 192.0.2.161/28 63 + 64 + sysctl_restore net.ipv4.conf.v$h3.rp_filter 0 65 65 66 66 mirror_gre_topo_destroy 67 67 vrf_cleanup