History | View | Annotate | Download (31.8 kB)
net: Use g_strdup_printf instead of snprintf.
assign_name() in net/net.c is using snprintf + g_strdup to get the sameresult as g_strdup_printf.
Signed-off-by: Hani Benhabiles <kroosec@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
misc: Use macro ARRAY_SIZE where possible
This improves readability and simplifies the code.
Cc: Anthony Liguori <aliguori@amazon.com>Cc: Gerd Hoffmann <kraxel@redhat.com>Cc: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Stefan Weil <sw@weilnetz.de>...
net: Update netdev peer on link change
When a link change occurs on a backend (like tap), we currently donot propage such change to the nic. As a result, when someone turnsoff a link on a tap device, for instance, then a guest doesn't seethat change and continues to try to send traffic or run DHCP even...
net: Adding netmap network backend
This patch adds support for a network backend based on netmap.netmap is a framework for high speed packet I/O. You can use itto build extremely fast traffic generators, monitors, softwareswitches or network middleboxes. Its companion software switch...
net: disallow to specify multicast MAC address
[Assigning a multicast MAC address to a NIC leads to confusing behavior.Reject multicast MAC addresses so users are alerted to their errorstraight away.
The "net/eth.h" in6_addr rename prevents a name collision with...
net: fix qemu_flush_queued_packets() in presence of a hub
Do not return after net_hub_flush(). Always flush callee network clientincoming queue.
Signed-off-by: Sergey Fedorov <s.fedorov@samsung.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net: Rename send_queue to incoming_queue
Each networking client has a queue for packets that could not yet bedelivered to that client. Calling this queue "send_queue" is highlyconfusing as it has nothing to to with packets send from this client butto it. Avoid this confusing by renaming it to "incoming_queue"....
aio / timers: Untangle include files
include/qemu/timer.h has no need to include main-loop.h anddoing so causes an issue for the next patch. Unfortunatelyvarious files assume including timers.h will pull in main-loop.h.Untangle this mess.
Signed-off-by: Alex Bligh <alex@alex.org.uk>...
net: add support of mac-programming over macvtap in QEMU side
Currently macvtap based macvlan device is working in promiscuousmode, we want to implement mac-programming over macvtap throughLibvirt for better performance.
Design: QEMU notifies Libvirt when rx-filter config is changed in guest,...
net: make network client name unique
assign_name() creates a name MODEL.NUM, where MODEL is the client's model,and NUM is the number of MODELs that already exist.
Markus added NIC naming for non-VLAN clients in commit 53e51d85.commit d33d93b2 incorrectly added a judgement of net-hub. It caused...
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...
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/