]> git.baikalelectronics.ru Git - kernel.git/commit
vhost_net: tx batching
authorJason Wang <jasowang@redhat.com>
Wed, 18 Jan 2017 07:02:02 +0000 (15:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 21:35:30 +0000 (16:35 -0500)
commitab581aef9d39785c8289917fa3a0b485654a34db
treec169b416a25aec7f553c9b999771580fadf86452
parentfcbdd73982d5be953f2d64b991927ec793be1430
vhost_net: tx batching

This patch tries to utilize tuntap rx batching by peeking the tx
virtqueue during transmission, if there's more available buffers in
the virtqueue, set MSG_MORE flag for a hint for backend (e.g tuntap)
to batch the packets.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c