Skip to content

Commit 7eaaf0b

Browse files
pmachatadavem330
authored andcommitted
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>
1 parent d51d10a commit 7eaaf0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/testing/selftests/net/forwarding/mirror_gre_nh.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ setup_prepare()
2929
swp3=${NETIFS[p5]}
3030
h3=${NETIFS[p6]}
3131

32+
sysctl_set net.ipv4.conf.all.rp_filter 0
33+
sysctl_set net.ipv4.conf.$h3.rp_filter 0
34+
3235
vrf_prepare
3336
mirror_gre_topo_create
3437

@@ -60,6 +63,9 @@ cleanup()
6063

6164
mirror_gre_topo_destroy
6265
vrf_cleanup
66+
67+
sysctl_restore net.ipv4.conf.$h3.rp_filter
68+
sysctl_restore net.ipv4.conf.all.rp_filter
6369
}
6470

6571
test_gretap()

0 commit comments

Comments
 (0)