]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-netfront: Rework the fix for Rx stall during OOM and network stress
authorDongli Zhang <dongli.zhang@oracle.com>
Tue, 21 Mar 2017 23:24:56 +0000 (07:24 +0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 29 May 2017 20:27:47 +0000 (16:27 -0400)
commit9764529f8de2a029f2744e5f95fb9fcf50c13370
tree9cb5a4355335ecf1ee7c29904928d0c9d4ffe6a5
parent0a08f96c282e523a42eeb0e072e05aa4f431246f
xen-netfront: Rework the fix for Rx stall during OOM and network stress

Orabug: 25747721

The commit 90c311b0eeea ("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: 90c311b0eeea (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>
Backport from upstream 538d92912d3190a1dd809233a0d57277459f37b2

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Acked-By: Joe Jin <joe.jin@oracle.com>
drivers/net/xen-netfront.c