All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] spapr-vlan: flush queue whenever can_receive can go from false to true
Date: Fri, 21 Feb 2014 14:46:53 +1100	[thread overview]
Message-ID: <5306CC2D.7040004@ozlabs.ru> (raw)
In-Reply-To: <1392341224-18795-1-git-send-email-aik@ozlabs.ru>

On 02/14/2014 12:27 PM, Alexey Kardashevskiy wrote:
> When the guests adds buffers to receive queue, the network device
> should flush its queue of pending packets. This is done with
> qemu_flush_queued_packets.
> 
> This adds a call to qemu_flush_queued_packets() which wakes up the main
> loop and let QEMU update the network device status which now is "can
> receive". The patch basically does the same thing as e8b4c68 does.


Ping, anyone?


> Suggested-by: Max Filippov <jcmvbkbc@gmail.com>
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> ---
>  hw/net/spapr_llan.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c
> index 72b0513..a7f00db 100644
> --- a/hw/net/spapr_llan.c
> +++ b/hw/net/spapr_llan.c
> @@ -408,6 +408,8 @@ static target_ulong h_add_logical_lan_buffer(PowerPCCPU *cpu,
>  
>      dev->rx_bufs++;
>  
> +    qemu_flush_queued_packets(qemu_get_queue(dev->nic));
> +
>      DPRINTF("h_add_logical_lan_buffer():  Added buf  ptr=%d  rx_bufs=%d"
>              " bd=0x%016llx\n", dev->add_buf_ptr, dev->rx_bufs,
>              (unsigned long long)buf);
> 


-- 
Alexey

  reply	other threads:[~2014-02-21  3:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  1:27 [Qemu-devel] [PATCH] spapr-vlan: flush queue whenever can_receive can go from false to true Alexey Kardashevskiy
2014-02-21  3:46 ` Alexey Kardashevskiy [this message]
2014-02-21  8:59   ` Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5306CC2D.7040004@ozlabs.ru \
    --to=aik@ozlabs.ru \
    --cc=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.