qemu-e2k/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
combined-packet.c
core.c usb: Remove unused functions 2015-04-30 16:05:48 +03:00
desc-msos.c
desc.c
desc.h
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
hcd-ehci-sysbus.c
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
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
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
host.h
libhw.c
Makefile.objs
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00