vhost: vhost-user component may become unusable with too many open files (VPP-668) 31/5831/4
authorSteven <sluong@cisco.com>
Wed, 22 Mar 2017 19:05:19 +0000 (12:05 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 29 Mar 2017 09:34:48 +0000 (09:34 +0000)
commit0d150bb132b81c20b38a0cefd82c8f718435515d
treeae4a056df2678fa44d13c458c071a2e677b1f295
parent4521afa9a643983c789b6b3a77b14c0a95d5e0b2
vhost: vhost-user component may become unusable with too many open files (VPP-668)

When the number of open files is reached in the system, vhost may
encounter a failure in socket call and return from vhost-user-process.
The return terminates all attempts of incoming socket connections
in the future, even if the condition is reconciled.

The fix is to not return from vhost-user-process, record the error in
the interface, spit out the error, and retry the connection every 3 seconds.

Change-Id: I806baedf13e8c9b73e7c7820c094240f39949950
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/devices/virtio/vhost-user.c