fix buffer allocation for sparse jumbo frames in vhost 77/8677/3
authorPierre Pfister <ppfister@cisco.com>
Thu, 5 Oct 2017 12:24:05 +0000 (14:24 +0200)
committerNeale Ranns <nranns@cisco.com>
Tue, 10 Oct 2017 19:09:35 +0000 (19:09 +0000)
commit30ef35e636ac8946c80f710098b6333afa199e64
tree2a85ee62ecdc24a5244b1425c2a45cc8934f6caf
parentaa5df48cb233b377b5910694e2440a16e5973864
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