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

Introduce tx_can_batch() to determine whether TX could be
batched. This will help to reduce the code 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