diff options
author | Fam Zheng <famz@redhat.com> | 2015-07-15 18:19:03 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-27 14:12:18 +0100 |
commit | b0ba0b9b6b402d738f11f27eea6c94d97bf84cbf (patch) | |
tree | 151f1a84607a1a4506053365199c6e85218c7dcf /hw/net/lance.c | |
parent | 8c8c460c5f38f878675631a66286a6e87bb4d111 (diff) |
pcnet: Drop pcnet_can_receive
pcnet_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-3-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/lance.c')
-rw-r--r-- | hw/net/lance.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/net/lance.c b/hw/net/lance.c index 4baa0169e6..780b39d65a 100644 --- a/hw/net/lance.c +++ b/hw/net/lance.c @@ -94,7 +94,6 @@ static const MemoryRegionOps lance_mem_ops = { static NetClientInfo net_lance_info = { .type = NET_CLIENT_OPTIONS_KIND_NIC, .size = sizeof(NICState), - .can_receive = pcnet_can_receive, .receive = pcnet_receive, .link_status_changed = pcnet_set_link_status, }; |