On Tue, Jul 28, 2015 at 05:52:56PM +0800, Fam Zheng wrote: > 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 <f...@redhat.com> > > --- > > v3: Drop log. [Wen] > > v2: > Fix return value of net_rx_packet to keep the semantics when ring > buffer is full. [Stefan] > Update commit message accordingly. > --- > hw/net/xen_nic.c | 25 +------------------------ > 1 file changed, 1 insertion(+), 24 deletions(-)
Thanks, applied to my net tree: https://github.com/stefanha/qemu/commits/net Stefan
pgpc21bzSUnwN.pgp
Description: PGP signature