]> git.proxmox.com Git - mirror_qemu.git/commit
xen: Drop net_rx_ok
authorFam Zheng <famz@redhat.com>
Tue, 28 Jul 2015 09:52:56 +0000 (17:52 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 28 Jul 2015 10:35:54 +0000 (11:35 +0100)
commit7bba83bf80eae9c9e323319ff40d0ca477b0a77a
treecf00d634e7b4c073e1fb791a5112fbc57fd05a5e
parentff1d2ac949dc94d8a0e71fd46939fb69c2ef075b
xen: Drop net_rx_ok

Let net_rx_packet() (which checks the same conditions) drops the packet
if the device is not ready. Drop net_xen_info.can_receive and update the
return value for the buffer full case.

We rely on the qemu_flush_queued_packets() in net_event() to wake up
the peer when the buffer becomes available again.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1438077176-378-1-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/xen_nic.c