aboutsummaryrefslogtreecommitdiff
path: root/target-lm32
diff options
context:
space:
mode:
authorShannon Zhao <shannon.zhao@linaro.org>2015-05-21 17:44:48 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-05-27 10:34:07 +0100
commit2bc22a58e16f0650e56dccfac9495e5aef58e2ef (patch)
tree24f38de78463888de57d61aa76bac3639e7fc298 /target-lm32
parenta308817743be5cc051d3379477f54027deb0befb (diff)
net/net: Record usage status of mac address
Currently QEMU dynamically generates mac address for the NIC which doesn't specify the mac address. But when we hotplug a NIC without specifying mac address, the mac address will increase for the same NIC along with hotplug and hot-unplug, and at last it will overflow. And if we codeplug one NIC with mac address e.g. "52:54:00:12:34:56", then hotplug one NIC without specifying mac address and the mac address of the hotplugged NIC is duplicate of "52:54:00:12:34:56". This patch add a mac_table to record the usage status and free the mac address when the NIC is unrealized. Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'target-lm32')
0 files changed, 0 insertions, 0 deletions