]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Do not configure nexthop objects twice
authorIdo Schimmel <idosch@nvidia.com>
Thu, 19 Nov 2020 13:08:45 +0000 (15:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 23:20:20 +0000 (15:20 -0800)
commit590456dbb41f7843384630ea6dab0e0625b7ae87
tree51670dbb16ce159397da2b167009a1f36f16efd4
parentc72567579ae4a73b17269fcfe0d5d5e64a28cffe
selftests: forwarding: Do not configure nexthop objects twice

routing_nh_obj() is used to configure the nexthop objects employed by
the test, but it is called twice resulting in "RTNETLINK answers: File
exists" messages.

Remove the first call, so that the function is only called after
setup_wait(), when all the interfaces are up and ready.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/router_mpath_nh.sh