OSDN Git Service

virtio-net: test peer header support at init time
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Sep 2012 15:04:21 +0000 (17:04 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 16:25:23 +0000 (18:25 +0200)
commit6e371ab867d48c16e6a9ee32cefcea48692a4deb
tree96bb2227018f8cfd3422906d936320f8f99dc7db
parente043ebc6f9a093c1fd1b677191ad9fbeefe22d1e
virtio-net: test peer header support at init time

There's no reason to query header support at random
times: at load or feature query.
Driver also might not query functions.
Cleaner to do it at device init.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-net.c