]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Introduce uip_rx() for uip
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:28 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:45 +0000 (10:42 +0300)
commitf699f9d556d337b5b84d3409d12b39b551c651ef
treea5cdef95554816fee3d14c59266eea019c764b69
parentcae1cc2a5f0fb8cf8f2997c75d85955f4d3fc017
kvm tools: Introduce uip_rx() for uip

This patch implement rx interface for uip. uip_rx() can be called in
virtio_net_rx_thread().

It is a consumer of the ethernet used buffer. It sleeps until there is
used buffer avaiable and copy ethernet data into virtio iov buffers
which provided by virtio_net_rx_thread().

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/uip.h
tools/kvm/uip/core.c