summaryrefslogtreecommitdiff
path: root/drivers/video/sysimgblt.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2011-01-17 16:11:08 +0800
committerMichael S. Tsirkin <mst@redhat.com>2011-03-13 17:00:10 +0200
commit94249369e9930276e30087da205349a55478cbb5 (patch)
treeb5040c7bb90bbd772f0692c7f6a367d5ce758f37 /drivers/video/sysimgblt.c
parentcfbdab951369f15de890597530076bf0119361be (diff)
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>
Diffstat (limited to 'drivers/video/sysimgblt.c')
0 files changed, 0 insertions, 0 deletions