]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/net/lasi_i82596: use qemu_create_nic_device()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Oct 2023 08:37:50 +0000 (09:37 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 1 Feb 2024 16:03:28 +0000 (16:03 +0000)
commitb36e07803c8e5ebbd7f1999dbbe3c0c93dc27a5c
tree3d0c8caa2980c3cff09c4f410f234be4ee51abb5
parente66a504a99511a232723ff12779f780c22f90507
hw/net/lasi_i82596: use qemu_create_nic_device()

Create the device only if there is a corresponding NIC config for it.
Remove the explicit check on nd_table[0].used from hw/hppa/machine.c
which (since commit d8a3220005d7) tries to do the same thing.

The lasi_82596 support has been disabled since it was first introduced,
since enable_lasi_lan() has always been zero. This allows the user to
enable it by explicitly requesting a NIC model 'lasi_82596' or just
using the alias 'lasi'. Otherwise, it defaults to a PCI NIC as before.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/hppa/machine.c
hw/net/lasi_i82596.c
include/hw/net/lasi_82596.h