]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3226c2ea16690ee1969648d1b32f129dfc5ea7b
treeaddce8fd7fd094bd9d7ac94581a46d9a13895e2a
parent34f08c21cec7c6501e3b4e652d7367c4c069f747
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