vhost_net: split out datacopy logic
authorJason Wang <jasowang@redhat.com>
Fri, 20 Jul 2018 00:15:18 +0000 (08:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2018 16:43:31 +0000 (09:43 -0700)
commit0d20bdf34dc7d6aeaa04f762be3e313bc4fa1b02
treecdc7e147e3e2c665ba946f53fe3d910943bbb917
parentc92a8a8cb7d499a352ebb625667a780bfc99ba77
vhost_net: split out datacopy logic

Instead of mixing zerocopy and datacopy logics, this patch tries to
split datacopy logic out. This results for a more compact code and
ad-hoc optimization could be done on top more easily.

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