OSDN Git Service

selftests: rtnetlink: add small test case with 'promote_secondaries' enabled
authorFlorian Westphal <fw@strlen.de>
Thu, 27 Jun 2019 12:03:33 +0000 (14:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 16:54:35 +0000 (09:54 -0700)
commitbb2bd090854cc608d4d8a4d14955eb13dffa94ab
tree485cac7117ac0bb3dd6713baaedaa37f5d7a7094
parent6a9e9cea4c51dd7137f381710bb42e2ad6e7e285
selftests: rtnetlink: add small test case with 'promote_secondaries' enabled

This exercises the 'promote_secondaries' code path.

Without previous fix, this triggers infinite loop/soft lockup:
ifconfig process spinning at 100%, never to return.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/rtnetlink.sh