On 01/12/2017 12:17 PM, David Miller wrote:
From: Vineeth Remanan Pillai
Date: Wed, 11 Jan 2017 23:17:17 +
@@ -1054,7 +1059,11 @@ static int xennet_poll(struct napi_struct *napi, int
budget)
napi_complete(napi);
From: Vineeth Remanan Pillai
Date: Wed, 11 Jan 2017 23:17:17 +
> @@ -1054,7 +1059,11 @@ static int xennet_poll(struct napi_struct *napi, int
> budget)
> napi_complete(napi);
>
> RING_FINAL_CHECK_FOR_RESPONSES(>rx, more_to_do);
> -
During an OOM scenario, request slots could not be created as skb
allocation fails. So the netback cannot pass in packets and netfront
wrongly assumes that there is no more work to be done and it disables
polling. This causes Rx to stall.
Fix is to consider the skb allocation failure as an error