Skip to content

Commit

Permalink
selftests: forwarding: mirror_gre_nh: Unset RP filter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Petr Machata authored and David S. Miller committed May 3, 2018
1 parent d51d10a commit 7eaaf0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/testing/selftests/net/forwarding/mirror_gre_nh.sh
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 7eaaf0b

Please sign in to comment.