Re: [PATCH v4 1/1] Add timer to handle OOM situations

2016-08-10 Thread Stefan Hajnoczi
On Thu, Aug 04, 2016 at 04:09:11PM +0200, ggar...@abra.uab.cat wrote: > From: Gerard Garcia > > Set up a rx timer to avoid packets being discarded when there is not > available memory in the host. > > Signed-off-by: Gerard Garcia > > --- > v4: > * Fix style. > > v3: > * Avoid race conditio

[PATCH v4 1/1] Add timer to handle OOM situations

2016-08-04 Thread ggarcia
From: Gerard Garcia Set up a rx timer to avoid packets being discarded when there is not available memory in the host. Signed-off-by: Gerard Garcia --- v4: * Fix style. v3: * Avoid race condition when freeing timer. v2: * Use of ERR_PTR/PTR_ERR/IS_ERR * Timer cleaned on device release. *