From: Shreyas Bhatewara Date: Tue, 5 Jul 2011 14:34:05 +0000 (+0000) Subject: vmxnet3: fix starving rx ring whenoc_skb kb fails X-Git-Tag: v3.0-rc7~41^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5318d809d7b4975ce5e5303e8508f89a5458c2b6;p=pandora-kernel.git vmxnet3: fix starving rx ring whenoc_skb kb fails 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 Signed-off-by: Shreyas N Bhatewara Signed-off-by: David S. Miller --- Reading git-diff-tree failed