selftests: forwarding: Use sysctl_set(), sysctl_restore()
authorPetr Machata <petrm@mellanox.com>
Thu, 3 May 2018 10:37:13 +0000 (12:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2018 17:37:02 +0000 (13:37 -0400)
commitd51d10aa1dbdedd9254874bf37e8b0cd96ea3bde
treef3b3e33094389e6e6a33aa94960217c947fcffd4
parentf5ae57784ba805d0e8b11db1a7b2c17c5a07dd70
selftests: forwarding: Use sysctl_set(), sysctl_restore()

Instead of hand-managing the sysctl set and restore, use the wrappers
sysctl_set() and sysctl_restore() to do the bookkeeping automatically.

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/lib.sh
tools/testing/selftests/net/forwarding/mirror_gre_changes.sh
tools/testing/selftests/net/forwarding/router_multipath.sh