qemu-e2k/include/net
Jason Wang f6b26cf257 net: reduce the unnecessary memory allocation of multiqueue
Edivaldo reports a problem that the array of NetClientState in NICState is too
large - MAX_QUEUE_NUM(1024) which will wastes memory even if multiqueue is not
used.

Instead of static arrays, solving this issue by allocating the queues on demand
for both the NetClientState array in NICState and VirtIONetQueue array in
VirtIONet.

Tested by myself, with single virtio-net-pci device. The memory allocation is
almost the same as when multiqueue is not merged.

Cc: Edivaldo de Araujo Pereira <edivaldoapereira@yahoo.com.br>
Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-02-27 16:10:47 +01:00
..
checksum.h net: reorganize headers 2012-12-19 08:31:29 +01:00
net.h net: reduce the unnecessary memory allocation of multiqueue 2013-02-27 16:10:47 +01:00
queue.h net: reorganize headers 2012-12-19 08:31:29 +01:00
slirp.h HMP: add QDict to info callback handler 2013-01-17 10:24:52 -02:00
tap.h tap: multiqueue support 2013-02-01 11:03:02 -06:00