diff options
author | Fam Zheng | 2015-07-15 12:19:04 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2015-07-27 15:12:18 +0200 |
commit | 363db4b249244f31d3c47fbd5a8b128c95ba8fe7 (patch) | |
tree | 9114df4de0176b065b54aa63cb5860c716227dea /hw/net/pcnet.c | |
parent | pcnet: Drop pcnet_can_receive (diff) | |
download | qemu-363db4b249244f31d3c47fbd5a8b128c95ba8fe7.tar.gz qemu-363db4b249244f31d3c47fbd5a8b128c95ba8fe7.tar.xz qemu-363db4b249244f31d3c47fbd5a8b128c95ba8fe7.zip |
eepro100: Drop nic_can_receive
nic_receive already checks the conditions and drop packets if false.
Due to the new semantics since 6e99c63 ("net/socket: Drop
net_socket_can_send"), having .can_receive returning 0 requires us to
explicitly flush the queued packets when the conditions are becoming
true, but queuing the packets when guest driver is not ready doesn't
make much sense.
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-4-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