fix buffer allocation for sparse jumbo frames in vhost 74/8674/3
authorPierre Pfister <ppfister@cisco.com>
Thu, 5 Oct 2017 12:24:05 +0000 (14:24 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 5 Oct 2017 20:08:18 +0000 (20:08 +0000)
commit67700d41169ac37d21c400949a316750eabad969
treede377e1584d6bd61393cba05c74421a437bcdcd7
parenta5081a7ac3e013febda1b8b61aed1dc9cd8321ef
fix buffer allocation for sparse jumbo frames in vhost

A bug was reported where a jumbo packet would stay in vhost
queue forever or until a large enough number of other packets
arrived in the queue too.

This is due to a bug in vhost input node buffer allocation.

The fix is to make sure that vhost always allocates at least
enough buffers for one single big packet. '40' is used to
account for 65kB frames.

Change-Id: I1d293028854165083e30cd798fab9d4140230b78
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
src/vnet/devices/virtio/vhost-user.c