qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH] spapr-vlan: flush queue whenever can_receive can


From: Alexey Kardashevskiy
Subject: Re: [Qemu-ppc] [PATCH] spapr-vlan: flush queue whenever can_receive can go from false to true
Date: Fri, 21 Feb 2014 14:46:53 +1100
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

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 <address@hidden>
> Signed-off-by: Alexey Kardashevskiy <address@hidden>
> ---
>  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 via email to

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