Commit 3e3cabcff9cbddb966833dce432b1409506b4d5b

Authored by Gerd Hoffmann
Committed by Blue Swirl
1 parent 23327f75

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>
Showing 1 changed file with 2 additions and 0 deletions
hw/xen_nic.c
... ... @@ -356,6 +356,8 @@ static int net_connect(struct XenDevice *xendev)
356 356 "remote port %d, local port %d\n",
357 357 netdev->tx_ring_ref, netdev->rx_ring_ref,
358 358 netdev->xendev.remote_port, netdev->xendev.local_port);
  359 +
  360 + net_tx_packets(netdev);
359 361 return 0;
360 362 }
361 363  
... ...