]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/m68k/q800: use qemu_find_nic_info()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Oct 2023 08:37:45 +0000 (09:37 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 1 Feb 2024 16:03:02 +0000 (16:03 +0000)
commit66aee182b42f44dbb5436b10c460f59692a618e6
treed34600cbf06368f769876989d331b2b641e13500
parentabb96c3669271417d7e6af72c20093de9d31b09c
hw/m68k/q800: use qemu_find_nic_info()

If a corresponding NIC configuration was found, it will have a MAC address
already assigned, so use that. Else, generate and assign a default one.

Using qemu_find_nic_info() is simpler than the alternative of using
qemu_configure_nic_device() and then having to fetch the "mac" property
as a string and convert it.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/m68k/q800.c