]> git.proxmox.com Git - mirror_qemu.git/commit - hw/net/e1000.c
net/e1000: update network information when macaddr is changed in guest
authorAmos Kong <akong@redhat.com>
Thu, 17 Oct 2013 07:02:49 +0000 (15:02 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 18 Oct 2013 11:28:09 +0000 (13:28 +0200)
commit7c36507c2b8776266f50c5e2739bd18279953b93
tree48f380f3d9b808af48b89e37e735832339b8163e
parent655d3b63b036b70714adbdae685055f1bda0f8f1
net/e1000: update network information when macaddr is changed in guest

If we change macaddr in guest by 'ifconfig eth0 hw ether 12:12:12:34:35:36',
the mac register of e1000 is already updated, but we don't update
network information in qemu. Therefor, the information in monitor
is wrong.

This patch updates nic info when the second part of macaddr is written.

Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/e1000.c