selftests: forwarding: mirror_gre_vlan_bridge_1q: Unset rp_filter
authorPetr Machata <petrm@mellanox.com>
Mon, 25 Jun 2018 23:20:32 +0000 (01:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 14:25:21 +0000 (23:25 +0900)
commit27a2628b3c24ce8ef23bd393f5514f8f45188f08
tree4717bfc1d3a349b171b7ca68e8a9d25512c056d0
parent68cc444dab1e70e59a719b7bf44bcaacbffa7496
selftests: forwarding: mirror_gre_vlan_bridge_1q: Unset rp_filter

The IP addresses of tunnel endpoint at H3 are set at the VLAN device
$h3.555. Therefore when test_gretap_untagged_egress() sets vlan 555 to
egress untagged at $swp3, $h3's rp_filter rejects these packets. The
test then spuriously fails.

Therefore turn off net.ipv4.conf.{all, $h3}.rp_filter.

Fixes: 9c7c8a82442c ("selftests: forwarding: mirror_gre_vlan_bridge_1q: Add more tests")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh