qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] virtio-net: don't update mac_table in error sta


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] virtio-net: don't update mac_table in error state
Date: Tue, 19 Nov 2013 15:15:40 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Nov 11, 2013 at 11:48:36AM +0800, Amos Kong wrote:
> mac_table was always cleaned up first in handling
> VIRTIO_NET_CTRL_MAC_TABLE_SET command, and we din't recover
> mac_table content in error state, it's not correct.
> 
> This patch makes all the changes in temporal variables,
> only update the real mac_table if everything is ok.
> We won't change mac_table in error state, so rxfilter
> notification isn't needed.
> 
> This patch also fixed same problame in
>  http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg01188.html
>  (not merge)
> 
> I will send patch for virtio spec to clarifying this change.
> 
> Signed-off-by: Amos Kong <address@hidden>
> ---
>  hw/net/virtio-net.c | 34 ++++++++++++++++++++--------------
>  1 file changed, 20 insertions(+), 14 deletions(-)

Thanks, applied to my net-next tree:
https://github.com/stefanha/qemu/commits/net-next

Stefan



reply via email to

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