aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-06-11 11:32:51 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-06-13 16:18:59 +0300
commit3e3cabcff9cbddb966833dce432b1409506b4d5b (patch)
tree9da7df9a93b8ab90477acc705351b1ced9ca7c3e /hw
parent23327f75420c28858c394f0e91c79c75df7020ee (diff)
xen nic: check tx queue after connect.
Needed for savevm/loadvm + migration: In that case the queue might already have packets on (re-)connect. The guest wouldn't notify us because notifications are only sent when stuffing a packet into an empty queue. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xen_nic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xen_nic.c b/hw/xen_nic.c
index 9a3c870c2d..e4f71f7f63 100644
--- a/hw/xen_nic.c
+++ b/hw/xen_nic.c
@@ -356,6 +356,8 @@ static int net_connect(struct XenDevice *xendev)
"remote port %d, local port %d\n",
netdev->tx_ring_ref, netdev->rx_ring_ref,
netdev->xendev.remote_port, netdev->xendev.local_port);
+
+ net_tx_packets(netdev);
return 0;
}