[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] net: Flush queued packets when guest resumes

From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] net: Flush queued packets when guest resumes
Date: Thu, 2 Jul 2015 14:13:28 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

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 <address@hidden>
> ---
>  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 <address@hidden>
Date:   Thu Sep 4 11:39:13 2014 +0300

    net: complete all queued packets on VM stop

Attachment: pgpVHL2qBRcBk.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]