History | View | Annotate | Download (30.1 kB)
net: increase buffer size to accommodate Jumbo frame pkts
Socket buffer sizes were hard-coded to 4K for VDE and socket netdevs. Bump thisup to 68K (ala tap netdev) to handle maximum GSO packet size (64k) plus plentyof room for the ethernet and virtio_net headers....
net: reduce the unnecessary memory allocation of multiqueue
Edivaldo reports a problem that the array of NetClientState in NICState is toolarge - MAX_QUEUE_NUM(1024) which will wastes memory even if multiqueue is notused.
Instead of static arrays, solving this issue by allocating the queues on demand...
net: fix qemu_flush_queued_packets() in presence of a hub
When frontend and backend are connected through a hub as below(showing only one direction), and the frontend (or in general, alloutput ports of the hub) cannot accept more traffic, the backendqueues packets in queue-A....
net: Avoid NULL function pointer dereference on cleanup
The pSeries machine and some other devices don't supply a cleanupcallback. Revert part of 1ceef9f27359cbe92ef124bf74de6f792e71f6fb thatstarted calling it unconditionally.
Cc: Jason Wang <jasowang@redhat.com>...
net: fix infinite loop on exit
1ceef9f27359cbe92ef124bf74de6f792e71f6fb added handling for cleaningup multiple queues in qemu_del_nic() for cases where multiqueue is inuse. To determine the number of queues it looks at nic->conf->queues,then iterates through all the queues to cleanup the associated...
net: intorduce qemu_del_nic()
To support multiqueue nic, this patch separate the nic destructor fromqemu_del_net_client() to a new helper qemu_del_nic() since the mapping bettweenNiCState and NetClientState were not 1:1 in multiqueue. The following patches...
net: introduce qemu_find_net_clients_except()
In multiqueue, all NetClientState that belongs to the same netdev or nic has thesame id. So this patches introduces an helper qemu_find_net_clients_except()which finds all NetClientState with the same id. This will be used by multiqueue...
net: introduce qemu_net_client_setup()
This patch separates the setup of NetClientState from its allocation, this willallow allocating an arrays of NetClientState and does the initialization one byone which is what multiqueue needs.
Signed-off-by: Jason Wang <jasowang@redhat.com>...
net: introduce NetClientState destructor
To allow allocating an array of NetClientState and free it once, this patchintroduces destructor of NetClientState. Which could do type specific free,which could be used by multiqueue to free the array once.
net: multiqueue support
This patch adds basic multiqueue support for qemu. The idea is simple, an arrayof NetClientStates were introduced in NICState, parse_netdev() were extended tofind and match all NetClientStates belongs to the backend and place their...
net: introduce qemu_get_nic()
To support multiqueue, this patch introduces a helper qemu_get_nic() to getNICState from a NetClientState. The following patches would refactor this helperto support multiqueue.
net: introduce qemu_get_queue()
To support multiqueue, the patch introduce a helper qemu_get_queue()which is used to get the NetClientState of a device. The following patches wouldrefactor this helper to support multiqueue.
g_strdup(NULL) returns NULL; simplify
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
HMP: add QDict to info callback handler
This patch change all info call back function to takeadditional QDict * parameter, which allow those commandtake parameter. Now it is set to NULL at default case.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>...
qemu-option: move standard option definitions out of qemu-config.c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
misc: move include files to include/qemu/
monitor: move include files to include/monitor/
qapi: move include files to include/qobject/
net: reorganize headers
Move public headers to include/net, and leave private headers in net/.Put the virtio headers in include/net/tap.h, removing the multiple copiesthat existed. Leave include/net/tap.h as the interface for NICs, andnet/tap_int.h as the interface for OS-specific parts of the tap backend....
net: move net.c to net/