On Wed, Jul 01, 2015 at 04:23:34PM +0800, Fam Zheng wrote: > Since commit 6e99c63 "net/socket: Drop net_socket_can_send" and friends, > net queues need to be explicitly flushed after qemu_can_send_packet() > returns false, because the netdev side will disable the polling of fd. > > This fixes the case of "cont" after "stop" (or migration), i.e. > vm_running changes to true, by listening to vm state changes. > > Signed-off-by: Fam Zheng <f...@redhat.com> > --- > include/net/net.h | 2 ++ > net/net.c | 14 +++++++++++++- > 2 files changed, 15 insertions(+), 1 deletion(-)
Please unify this code with: commit ca77d85e1dbf929ae677a0bac96e9b3edd1704da Author: Michael S. Tsirkin <m...@redhat.com> Date: Thu Sep 4 11:39:13 2014 +0300 net: complete all queued packets on VM stop
pgp7cXk87U3Zg.pgp
Description: PGP signature