xemu/hw/usb
Fam Zheng 913440249e usbnet: Drop usbnet_can_receive
usbnet_receive already drops packet if rndis_state is not
RNDIS_DATA_INITIALIZED, and queues packet if in buffer is not available.
The only difference is s->dev.config but that is similar to rndis_state.

Drop usbnet_can_receive and move these checks to usbnet_receive, so that
we don't need to explicitly flush the queue when s->dev.config changes
value.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Message-id: 1436955553-22791-5-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-07-27 14:12:18 +01:00
..
bus.c qerror: Move #include out of qerror.h 2015-06-22 18:20:40 +02:00
ccid-card-emulated.c Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00
ccid-card-passthru.c Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00
ccid.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
combined-packet.c usb: Fix iovec memleak on combined-packet free 2013-09-19 11:28:40 +02:00
core.c usb: Remove unused functions 2015-04-30 16:05:48 +03:00
desc-msos.c usb: Pair g_malloc() with g_free(), not free() 2015-02-10 09:27:20 +03:00
desc.c usb: add usb_pick_speed 2014-06-02 16:29:00 +02:00
desc.h usb: add CompatibleID support to msos 2014-04-22 12:40:57 +02:00
dev-audio.c usb: usb-audio QOMify 2015-05-08 13:01:06 +02:00
dev-bluetooth.c usb: usb-bt QOMify 2015-05-08 13:01:06 +02:00
dev-hid.c usb: usb-hid QOMify 2015-05-08 13:01:06 +02:00
dev-hub.c usb: usb-hub QOMify 2015-05-08 13:01:07 +02:00
dev-mtp.c usb-mtp: fix segmentation fault 2015-05-08 13:01:07 +02:00
dev-network.c usbnet: Drop usbnet_can_receive 2015-07-27 14:12:18 +01:00
dev-serial.c Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00
dev-smartcard-reader.c usb-ccid: add missing wakeup calls 2015-07-17 13:20:53 +02:00
dev-storage.c qerror: Move #include out of qerror.h 2015-06-22 18:20:40 +02:00
dev-uas.c usb: usb-uas QOMify 2015-05-08 13:01:07 +02:00
dev-wacom.c usb: usb-wacom-tablet QOMify 2015-05-08 13:01:07 +02:00
hcd-ehci-pci.c ehci: fix segfault when hot-unplugging ehci controller 2015-03-20 08:50:12 +01:00
hcd-ehci-sysbus.c ehci: fix segfault when hot-unplugging ehci controller 2015-03-20 08:50:12 +01:00
hcd-ehci.c timer: rename NSEC_PER_SEC due to Mac OS X header clash 2015-07-20 17:01:00 +01:00
hcd-ehci.h Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00
hcd-musb.c Fix remaining warnings from Sparse (void return) 2015-03-19 11:11:55 +03:00
hcd-ohci.c migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
hcd-uhci.c uhci: controller is halted after reset 2015-05-08 13:01:08 +02:00
hcd-xhci.c Revert "xhci: set timer to retry xfers" 2015-07-17 13:20:53 +02:00
host-legacy.c usb: Improve -usbdevice error reporting a bit 2015-02-18 10:53:10 +01:00
host-libusb.c Re-attach usb device to kernel while usb_host_open fails 2015-07-16 17:39:13 +02:00
host-stub.c hmp: Name HMP info handler functions hmp_info_SUBCOMMAND() 2015-02-18 11:58:50 +01:00
host.h usb-host: move legacy cmd line bits 2013-02-19 12:30:05 +01:00
libhw.c dma: eliminate DMAContext 2013-06-20 16:39:52 +02:00
Makefile.objs hw/usb: Include USB files only if necessary 2015-03-18 11:50:47 +01:00
quirks-ftdi-ids.h usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
quirks-pl2303-ids.h usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
quirks.c usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
quirks.h usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
redirect.c Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00