2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/drivers/vhost
Jason Wang 94249369e9 vhost-net: Unify the code of mergeable and big buffer handling
Codes duplication were found between the handling of mergeable and big
buffers, so this patch tries to unify them. This could be easily done
by adding a quota to the get_rx_bufs() which is used to limit the
number of buffers it returns (for mergeable buffer, the quota is
simply UIO_MAXIOV, for big buffers, the quota is just 1), and then the
previous handle_rx_mergeable() could be resued also for big buffers.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2011-03-13 17:00:10 +02:00
..
Kconfig net/macvtap: add vhost support 2010-02-18 14:08:38 -08:00
Makefile vhost_net: a kernel-level virtio server 2010-01-15 01:43:29 -08:00
net.c vhost-net: Unify the code of mergeable and big buffer handling 2011-03-13 17:00:10 +02:00
test.c vhost test module 2010-12-09 16:00:21 +02:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c vhost: copy_from_user -> __copy_from_user 2011-03-08 18:03:05 +02:00
vhost.h vhost: rcu annotation fixup 2011-02-01 16:48:46 +02:00