diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-07-23 04:19:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-23 16:06:48 -0400 |
commit | efa7b79f675da0efafe3f32ba0d6efe916cf4867 (patch) | |
tree | 51243bbeb867c86d975aba0560feb631c7e673cc /tools | |
parent | b3e487c0cf425369a48049251af75593a5652dc1 (diff) |
selftests: forwarding: gre_multipath: Enable IPv4 forwarding
The test did not enable IPv4 forwarding during its setup phase, which
causes the test to fail on machines where IPv4 forwarding is disabled.
Fixes: 54818c4c4b93 ("selftests: forwarding: Test multipath tunneling")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Tested-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/forwarding/gre_multipath.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/gre_multipath.sh b/tools/testing/selftests/net/forwarding/gre_multipath.sh index cca2baa03fb8..37d7297e1cf8 100755 --- a/tools/testing/selftests/net/forwarding/gre_multipath.sh +++ b/tools/testing/selftests/net/forwarding/gre_multipath.sh | |||
@@ -187,12 +187,16 @@ setup_prepare() | |||
187 | sw1_create | 187 | sw1_create |
188 | sw2_create | 188 | sw2_create |
189 | h2_create | 189 | h2_create |
190 | |||
191 | forwarding_enable | ||
190 | } | 192 | } |
191 | 193 | ||
192 | cleanup() | 194 | cleanup() |
193 | { | 195 | { |
194 | pre_cleanup | 196 | pre_cleanup |
195 | 197 | ||
198 | forwarding_restore | ||
199 | |||
196 | h2_destroy | 200 | h2_destroy |
197 | sw2_destroy | 201 | sw2_destroy |
198 | sw1_destroy | 202 | sw1_destroy |