提交 3aa0df5f 编写于 作者: N Nikolay Aleksandrov 提交者: sanglipeng

selftests: net: fix nexthop warning cleanup double ip typo

stable inclusion
from stable-v5.10.158
commit 4919503426c93c5a254148db08796a695245bf94
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4919503426c93c5a254148db08796a695245bf94

--------------------------------

[ Upstream commit 692930cc ]

I made a stupid typo when adding the nexthop route warning selftest and
added both $IP and ip after it (double ip) on the cleanup path. The
error doesn't show up when running the test, but obviously it doesn't
cleanup properly after it.

Fixes: 392baa33 ("selftests: net: add delete nexthop route warning test")
Signed-off-by: NNikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Stable-dep-of: d5082d38 ("ipv4: Fix route deletion when nexthop info is not specified")
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: Nsanglipeng <sanglipeng1@jd.com>
上级 4abdeabc
......@@ -943,8 +943,8 @@ ipv4_fcnal()
[ $out1 -eq $out2 ]
rc=$?
log_test $rc 0 "Delete nexthop route warning"
run_cmd "$IP ip route delete 172.16.101.1/32 nhid 12"
run_cmd "$IP ip nexthop del id 12"
run_cmd "$IP route delete 172.16.101.1/32 nhid 12"
run_cmd "$IP nexthop del id 12"
}
ipv4_grp_fcnal()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册