Commit 7eaaf0bc authored by Petr Machata's avatar Petr Machata Committed by David S. Miller

selftests: forwarding: mirror_gre_nh: Unset RP filter

The test fails to work if reverse-path filtering is in effect on the
mirrored-to host interface, or for all interfaces.
Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d51d10aa
...@@ -29,6 +29,9 @@ setup_prepare() ...@@ -29,6 +29,9 @@ setup_prepare()
swp3=${NETIFS[p5]} swp3=${NETIFS[p5]}
h3=${NETIFS[p6]} h3=${NETIFS[p6]}
sysctl_set net.ipv4.conf.all.rp_filter 0
sysctl_set net.ipv4.conf.$h3.rp_filter 0
vrf_prepare vrf_prepare
mirror_gre_topo_create mirror_gre_topo_create
...@@ -60,6 +63,9 @@ cleanup() ...@@ -60,6 +63,9 @@ cleanup()
mirror_gre_topo_destroy mirror_gre_topo_destroy
vrf_cleanup vrf_cleanup
sysctl_restore net.ipv4.conf.$h3.rp_filter
sysctl_restore net.ipv4.conf.all.rp_filter
} }
test_gretap() test_gretap()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment