]> git.ipfire.org Git - thirdparty/qemu.git/commit
usbnet: Drop usbnet_can_receive
authorFam Zheng <famz@redhat.com>
Wed, 15 Jul 2015 10:19:05 +0000 (18:19 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 27 Jul 2015 13:12:18 +0000 (14:12 +0100)
commit913440249ea2e697177e9d43167ac325a8dfe907
tree99decebc0fbc5c229ea0e8a663e139997afcb135
parent363db4b249244f31d3c47fbd5a8b128c95ba8fe7
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>
hw/usb/dev-network.c