]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9125152d8f950ea8aba07158d83efab1028654de
treeb5782fc0544017b141347dc084b140620777043e
parente3226c2ea16690ee1969648d1b32f129dfc5ea7b
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