xemu/net
Shannon Zhao 2bc22a58e1 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>
2015-05-27 10:34:07 +01:00
..
checksum.c
clients.h net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
dump.c net/dump: Improve -net/host_net_add dump error reporting 2015-05-27 09:51:05 +01:00
eth.c
hub.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
hub.h
l2tpv3.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
Makefile.objs
net.c net/net: Record usage status of mac address 2015-05-27 10:34:07 +01:00
netmap.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
queue.c net: Use g_new() & friends where that makes obvious sense 2014-12-19 13:17:02 +00:00
slirp.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
socket.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
tap_int.h tap: Permit incremental conversion of tap_open() to Error 2015-05-27 10:34:07 +01:00
tap-aix.c tap: Permit incremental conversion of tap_open() to Error 2015-05-27 10:34:07 +01:00
tap-bsd.c tap-bsd: Convert tap_open() to Error 2015-05-27 10:34:07 +01:00
tap-haiku.c tap: Permit incremental conversion of tap_open() to Error 2015-05-27 10:34:07 +01:00
tap-linux.c tap-linux: Convert tap_open() to Error 2015-05-27 10:34:07 +01:00
tap-linux.h
tap-solaris.c tap-solaris: Convert tap_open() to Error 2015-05-27 10:34:07 +01:00
tap-win32.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
tap.c tap: Improve -netdev/netdev_add/-net/... tap error reporting 2015-05-27 10:34:07 +01:00
util.c
util.h
vde.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
vhost-user.c net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00