From: Gerd Hoffmann Subject: [PATCH RESEND 4/4] xen nic: check tx queue after connect. Date: Thu, 11 Jun 2009 11:32:51 +0200 Message-ID: <1244712771-14432-5-git-send-email-kraxel@redhat.com> References: <1244712771-14432-1-git-send-email-kraxel@redhat.com> Return-path: In-Reply-To: <1244712771-14432-1-git-send-email-kraxel@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: qemu-devel@nongnu.org, xen-devel@lists.xensource.com Cc: Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org 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 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 9a3c870..e4f71f7 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; } -- 1.6.2.2