diff options
author | Fam Zheng | 2015-07-15 12:19:05 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2015-07-27 15:12:18 +0200 |
commit | 913440249ea2e697177e9d43167ac325a8dfe907 (patch) | |
tree | 99decebc0fbc5c229ea0e8a663e139997afcb135 /hw/net/pcnet.c | |
parent | eepro100: Drop nic_can_receive (diff) | |
download | qemu-913440249ea2e697177e9d43167ac325a8dfe907.tar.gz qemu-913440249ea2e697177e9d43167ac325a8dfe907.tar.xz 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 'hw/net/pcnet.c')
0 files changed, 0 insertions, 0 deletions