|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen-netfront: Fix Rx stall during network stress and OOM
On 01/12/2017 12:17 PM, David Miller wrote: From: Vineeth Remanan Pillai <vineethp@xxxxxxxxxx> Date: Wed, 11 Jan 2017 23:17:17 +0000 Thanks Dave for the inputs.On further look, I think I can fix it much simpler by correcting the test condition
for minimum slots for pushing requests. Existing test is like this:
<snip>
/* Not enough requests? Try again later. */
if (req_prod - queue->rx.rsp_cons < NET_RX_SLOTS_MIN) {
mod_timer(&queue->rx_refill_timer, jiffies + (HZ/10));
return;
}
</snip>
Actually the above check counts more than the newly created request slots
as it counts from rsp_cons. The actual count should be the difference
between
new req_prod and old req_prod(in the queue). If skbs cannot be created,
this
count remains small and hence we would schedule the timer. So the fix
could be:
/* Not enough requests? Try again later. */
- if (req_prod - queue->rx.rsp_cons < NET_RX_SLOTS_MIN) {
+ if (req_prod - queue->rx.sring->req_prod < NET_RX_SLOTS_MIN) {
I have done some initial testing to verify the fix. Will send out v2
patch after couple
more round of testing. Thanks, Vineeth _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |