]> git.karo-electronics.de Git - linux-beck.git/commit
vhost-net: check the support of mergeable buffer outside the receive loop
authorJason Wang <jasowang@redhat.com>
Mon, 17 Jan 2011 08:10:59 +0000 (16:10 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 13 Mar 2011 14:57:30 +0000 (16:57 +0200)
commitcfbdab951369f15de890597530076bf0119361be
treef6abfd1324d7d57784545f9dda4e4fbf60570053
parentfcc042a2806064ffcaed7a0c5cb710eca0e99108
vhost-net: check the support of mergeable buffer outside the receive loop

No need to check the support of mergeable buffer inside the recevie
loop as the whole handle_rx()_xx is in the read critical region.  So
this patch move it ahead of the receiving loop.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c