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
desc-msos.c
desc.c
desc.h
dev-audio.c
dev-bluetooth.c
dev-hid.c
dev-hub.c
dev-mtp.c
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
dev-wacom.c
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
hcd-uhci.c
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