vhost: do not stall if guest is slow
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 8 Dec 2015 00:50:21 +0000 (16:50 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Dec 2015 21:02:33 +0000 (22:02 +0100)
commit98b5ecbf76f0743128b4e0dd69a5481ace5005f6
tree63e48ad4e9bad93c00a5c5426d057712693633ea
parent6ed346a46217461319cae37f4af75a66ac4a352b
vhost: do not stall if guest is slow

When guest is booting (or any othertime guest is busy) it is possible
for the small receive ring (256) to get full. If this happens the
vhost library should just return normally. It's current behavior
of logging just creates massive log spew/overflow which could even
act as a DoS attack against host.

Reported-by: Nathan Law <nlaw@brocade.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost_rxtx.c