]> git.proxmox.com Git - qemu.git/commit
e1000/rtl8139: update HMP NIC when every bit is written
authorAmos Kong <akong@redhat.com>
Tue, 5 Nov 2013 11:17:18 +0000 (19:17 +0800)
committerAnthony Liguori <aliguori@amazon.com>
Thu, 7 Nov 2013 05:46:25 +0000 (21:46 -0800)
commitcd5be5829c1ce87aa6b3a7806524fac07ac9a757
tree6a3a0242545d5f1ad25a6ccbe08801f57605e640
parentfe2dafa02de4f80ab36f6e0f4ddfcd6418c03c49
e1000/rtl8139: update HMP NIC when every bit is written

We currently just update the HMP NIC info when the last bit of macaddr
is written. This assumes that guest driver will write all the macaddr
from bit 0 to bit 5 when it changes the macaddr, this is the current
behavior of linux driver (e1000/rtl8139cp), but we can't do this
assumption.

The macaddr that is used for rx-filter will be updated when every bit
is changed. This patch updates the e1000/rtl8139 nic to update HMP NIC
info when every bit is changed. It will be same as virtio-net.

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Message-id: 1383650238-16015-1-git-send-email-akong@redhat.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
hw/net/e1000.c
hw/net/rtl8139.c