vhost_net: introduce get_tx_bufs()
authorJason Wang <jasowang@redhat.com>
Fri, 20 Jul 2018 00:15:16 +0000 (08:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2018 16:43:31 +0000 (09:43 -0700)
commita2a91a137ad4e9c538c9b63b2bfcf7a105924143
treeaddce8fd7fd094bd9d7ac94581a46d9a13895e2a
parent272f35cba53d088085e5952fd81d7a133ab90789
vhost_net: introduce get_tx_bufs()

Factor out logic of getting tx buffer and iov iter
initialization. This will be used for reducing codes duplication in
the future.

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