tests/qtest/npcm7xx_emc-test: Connect all NICs to a backend
commitbf25d7815b0c0d58c43c3301d8debf1c75727547
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Feb 2024 17:12:31 +0000 (6 17:12 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Feb 2024 11:36:23 +0000 (15 11:36 +0000)
tree75ebd1f089441839e1d9f73e726561d87db555a5
parent243f865af95db55f30c8547b407b3420909590a7
tests/qtest/npcm7xx_emc-test: Connect all NICs to a backend

Currently QEMU will warn if there is a NIC on the board that
is not connected to a backend. By default the '-nic user' will
get used for all NICs, but if you manually connect a specific
NIC to a specific backend, then the other NICs on the board
have no backend and will be warned about:

qemu-system-arm: warning: nic npcm7xx-emc.1 has no peer
qemu-system-arm: warning: nic npcm-gmac.0 has no peer
qemu-system-arm: warning: nic npcm-gmac.1 has no peer

So suppress those warnings by manually connecting every NIC
on the board to some backend.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20240206171231.396392-3-peter.maydell@linaro.org
tests/qtest/npcm7xx_emc-test.c