]> Pileus Git - ~andy/linux/commitdiff
vhost_net: determine whether or not to use zerocopy at one time
authorJason Wang <jasowang@redhat.com>
Mon, 2 Sep 2013 08:40:59 +0000 (16:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:46:57 +0000 (22:46 -0400)
Currently, even if the packet length is smaller than VHOST_GOODCOPY_LEN, if
upend_idx != done_idx we still set zcopy_used to true and rollback this choice
later. This could be avoided by determining zerocopy once by checking all
conditions at one time before.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found