From 3e3cabcff9cbddb966833dce432b1409506b4d5b Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 11 Jun 2009 11:32:51 +0200 Subject: 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 --- hw/xen_nic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/xen_nic.c') 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; } -- cgit v1.2.3