diff options
author | Petr Machata <petrm@mellanox.com> | 2018-05-03 13:37:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-03 20:37:02 +0300 |
commit | 7eaaf0bc52127401f7f39c9f7950f3f624763c90 (patch) | |
tree | a5b15e009ca463bfe36df69124ba88a8eb4f6a81 /tools | |
parent | d51d10aa1dbdedd9254874bf37e8b0cd96ea3bde (diff) | |
download | linux-7eaaf0bc52127401f7f39c9f7950f3f624763c90.tar.xz |
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: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/forwarding/mirror_gre_nh.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_nh.sh b/tools/testing/selftests/net/forwarding/mirror_gre_nh.sh index a0d1ad46a2bc..8fa681eb90e7 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_nh.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_nh.sh @@ -29,6 +29,9 @@ setup_prepare() swp3=${NETIFS[p5]} h3=${NETIFS[p6]} + sysctl_set net.ipv4.conf.all.rp_filter 0 + sysctl_set net.ipv4.conf.$h3.rp_filter 0 + vrf_prepare mirror_gre_topo_create @@ -60,6 +63,9 @@ cleanup() mirror_gre_topo_destroy vrf_cleanup + + sysctl_restore net.ipv4.conf.$h3.rp_filter + sysctl_restore net.ipv4.conf.all.rp_filter } test_gretap() |