failover: split failover_find_primary_device_id()
commitf5e1847ba50a8d1adf66c0cf312e53c162e52487
authorJuan Quintela <quintela@redhat.com>
Wed, 18 Nov 2020 08:37:44 +0000 (18 09:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Dec 2020 18:48:58 +0000 (8 13:48 -0500)
treef928be22dd385cf66024cf62daa98f6175b028f8
parent0a0a27d66bcb275e5b984d8758880a7eff75464e
failover: split failover_find_primary_device_id()

So we can calculate the device id when we need it.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20201118083748.1328-24-quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c