qemu-e2k/hw/net
Marc-André Lureau e6bcb1b617 vhost-user: keep vhost_net after a disconnection
Many code paths assume get_vhost_net() returns non-null.

Keep VhostUserState.vhost_net after a successful vhost_net_init(),
instead of freeing it in vhost_net_cleanup().

VhostUserState.vhost_net is thus freed before after being recreated or
on final vhost_user_cleanup() and there is no need to save the acked
features.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-07-29 00:33:48 +03:00
..
fsl_etsec qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
rocker qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
allwinner_emac.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
cadence_gem.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
dp8393x.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
e1000_regs.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
e1000.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
e1000e_core.c e1000e: fix incorrect access to pointer 2016-07-18 16:16:20 +08:00
e1000e_core.h net: Introduce e1000e device emulation 2016-06-02 10:42:29 +08:00
e1000e.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
e1000x_common.c hw/net/e1000: Don't use *_to_cpup() 2016-06-27 16:39:56 +01:00
e1000x_common.h e1000: Move out code that will be reused in e1000e 2016-06-02 10:42:29 +08:00
eepro100.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
etraxfs_eth.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
imx_fec.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
lan9118.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
lance.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
Makefile.objs e1000e: fix building without CONFIG_VMXNET3_PCI 2016-07-18 16:17:02 +08:00
mcf_fec.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
milkymist-minimac2.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
mipsnet.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
ne2000-isa.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
ne2000.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
ne2000.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
net_rx_pkt.c net_pkt: Extend packet abstraction as required by e1000e functionality 2016-06-02 10:42:28 +08:00
net_rx_pkt.h net_pkt: Extend packet abstraction as required by e1000e functionality 2016-06-02 10:42:28 +08:00
net_tx_pkt.c clean-includes: run it once more 2016-06-16 18:39:03 +02:00
net_tx_pkt.h clean-includes: run it once more 2016-06-16 18:39:03 +02:00
opencores_eth.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
pcnet-pci.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
pcnet.c hw/net: Clean up includes 2016-01-29 15:07:23 +00:00
pcnet.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
rtl8139.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
smc91c111.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
spapr_llan.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
stellaris_enet.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
trace-events trace: split out trace events for hw/net/ directory 2016-06-20 17:22:15 +01:00
vhost_net.c vhost-user: keep vhost_net after a disconnection 2016-07-29 00:33:48 +03:00
virtio-net.c pc, pci, virtio: new features, cleanups, fixes 2016-07-21 20:12:37 +01:00
vmware_utils.h vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU 2016-06-28 10:13:57 +08:00
vmxnet3.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
vmxnet3.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
vmxnet_debug.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
xen_nic.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
xgmac.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
xilinx_axienet.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00
xilinx_ethlite.c qapi: Change Netdev into a flat union 2016-07-19 20:18:02 +02:00