]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netfront: Rework the fix for Rx stall during OOM and network stress
authorVineeth Remanan Pillai <vineethp@amazon.com>
Tue, 7 Feb 2017 18:59:01 +0000 (18:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Feb 2017 21:34:05 +0000 (16:34 -0500)
commit0a248adea4d22de9a76d88da59224a72436e46ae
tree3a0ff3c7ae5e688124425606039b8ae960e5d5de
parenta4bc33fd3f10adac06ddb8949574a9d3d5449876
xen-netfront: Rework the fix for Rx stall during OOM and network stress

The commit 54bd83f1323d ("xen-netfront: Fix Rx stall during network
stress and OOM") caused the refill timer to be triggerred almost on
all invocations of xennet_alloc_rx_buffers for certain workloads.
This reworks the fix by reverting to the old behaviour and taking into
consideration the skb allocation failure. Refill timer is now triggered
on insufficient requests or skb allocation failure.

Signed-off-by: Vineeth Remanan Pillai <vineethp@amazon.com>
Fixes: 54bd83f1323d (xen-netfront: Fix Rx stall during network stress and OOM)
Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c