selftests: fib_rule_tests: enable forwarding before ipv4 from/iif test
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 20 May 2019 04:36:55 +0000 (12:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 May 2019 00:20:20 +0000 (20:20 -0400)
commitd1abf388604fffd0386ba0e4204d84451a7de9c2
tree2f06454887b2efac0bb7e793128c821841d2eebb
parentfc82d93e57e3d41f79eff19031588b262fc3d0b6
selftests: fib_rule_tests: enable forwarding before ipv4 from/iif test

As all the testing addresses are in the same subnet and egress device ==
ingress device. We need enable forwarding to get the route entry.

Also disable rp_filer separately as some distributions enable it in
startup scripts.

Fixes: 65b2b4939a64 ("selftests: net: initial fib rule tests")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_rule_tests.sh