diff options
| author | Fam Zheng <famz@redhat.com> | 2015-07-15 18:19:05 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-27 14:12:18 +0100 |
| commit | 913440249ea2e697177e9d43167ac325a8dfe907 (patch) | |
| tree | 99decebc0fbc5c229ea0e8a663e139997afcb135 /scripts/qapi-commands.py | |
| parent | 363db4b249244f31d3c47fbd5a8b128c95ba8fe7 (diff) | |
| download | focaccia-qemu-913440249ea2e697177e9d43167ac325a8dfe907.tar.gz focaccia-qemu-913440249ea2e697177e9d43167ac325a8dfe907.zip | |
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>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions