On Thu, Aug 04, 2016 at 04:09:11PM +0200, ggarcia@abra.uab.cat wrote:
From: Gerard Garcia <redacted>
Set up a rx timer to avoid packets being discarded when there is not
available memory in the host.
Signed-off-by: Gerard Garcia <redacted>
---
v4:
* Fix style.
v3:
* Avoid race condition when freeing timer.
v2:
* Use of ERR_PTR/PTR_ERR/IS_ERR
* Timer cleaned on device release.
* Do not process more packets on error.
drivers/vhost/vsock.c | 49 ++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 40 insertions(+), 9 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>