vhost: disable host TSO for linear buffers without extbuf
authorIlya Maximets <i.maximets@ovn.org>
Thu, 17 Oct 2019 15:00:19 +0000 (17:00 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:23:06 +0000 (19:23 +0200)
commit70c7747689082abba6452803b6e23e6aed649ace
tree36c74901461782a863614b3abea7050f7cd54266
parent19896c73935227fd345e224144a01626c309ebd1
vhost: disable host TSO for linear buffers without extbuf

If linear buffers requested and external buffers are not, vhost
will not be able to receive any buffer that doesn't fit in a
single mbuf.  Moreover, if such a buffer will appear in a vring
it will never be dequeued and the whole vring will become dead
breaking the network connection.

Disable segmentation offloading from the host side to avoid
having such a big buffers.

Fixes: c3ff0ac70acb ("vhost: improve performance by supporting large buffer")

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/socket.c