]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vhost_net should call the poll callback only when it is set
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Tue, 27 May 2014 12:04:55 +0000 (15:04 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:55 +0000 (16:41 +0300)
commit212d69f25e8bff3e9dc8af6ca30a6556094fc5a5
tree054c19ad99f03ba6d8f0ac4aedb6ddeeef1511ed
parent2e6d46d77ed328d34a94688da8371bcbe243479b
vhost_net should call the poll callback only when it is set

The poll callback needs to be called when bringing up or down
the vhost_net instance. As it is not mandatory for an NetClient
to implement it, invoke it only when it is set.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/vhost_net.c