summaryrefslogtreecommitdiffstats
path: root/hw/net/cadence_gem.c
diff options
context:
space:
mode:
authorAmos Kong2013-11-11 04:48:36 +0100
committerStefan Hajnoczi2013-12-09 13:33:20 +0100
commitcae2e5562cdaf3aafa1c4ec2d5f2b19af6c886dd (patch)
tree2594c16a8ec73e2452131e6d8c3704daa5cf8e5d /hw/net/cadence_gem.c
parentMAINTAINERS: Add netmap maintainers (diff)
downloadqemu-cae2e5562cdaf3aafa1c4ec2d5f2b19af6c886dd.tar.gz
qemu-cae2e5562cdaf3aafa1c4ec2d5f2b19af6c886dd.tar.xz
qemu-cae2e5562cdaf3aafa1c4ec2d5f2b19af6c886dd.zip
virtio-net: don't update mac_table in error state
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 <akong@redhat.com> Reviewed-by: Vlad Yasevich <vyasevic@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/cadence_gem.c')
0 files changed, 0 insertions, 0 deletions