mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 00:36:06 +00:00
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>
This commit is contained in:
parent
23327f7542
commit
3e3cabcff9
@ -356,6 +356,8 @@ static int net_connect(struct XenDevice *xendev)
|
|||||||
"remote port %d, local port %d\n",
|
"remote port %d, local port %d\n",
|
||||||
netdev->tx_ring_ref, netdev->rx_ring_ref,
|
netdev->tx_ring_ref, netdev->rx_ring_ref,
|
||||||
netdev->xendev.remote_port, netdev->xendev.local_port);
|
netdev->xendev.remote_port, netdev->xendev.local_port);
|
||||||
|
|
||||||
|
net_tx_packets(netdev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user