[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110705.184035.2294830861687805068.davem@davemloft.net>
Date: Tue, 05 Jul 2011 18:40:35 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: sbhatewara@...are.com
Cc: bhutchings@...arflare.com, pv-drivers@...are.com,
netdev@...r.kernel.org, scottjg@...are.com
Subject: Re: [PATCH] vmxnet3: fix starving rx ring whenoc_skb kb fails
From: Shreyas Bhatewara <sbhatewara@...are.com>
Date: Tue, 5 Jul 2011 17:34:05 -0700 (PDT)
>
> If the rx ring is completely empty, then the device may never fire an rx
> interrupt. Unfortunately, the rx interrupt is what triggers populating the
> rx ring with fresh buffers, so this will cause networking to lock up.
>
> This patch replenishes the skb in recv descriptor as soon as it is
> peeled off while processing rx completions. If the skb/buffer
> allocation fails, existing one is recycled and the packet in hand is
> dropped. This way none of the RX desc is ever left empty, thus avoiding
> starvation
>
> Signed-off-by: Scott J. Goldman <scottjg@...are.com>
> Signed-off-by: Shreyas N Bhatewara <sbhatewara@...are.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists