From: Michael Chan Date: Fri, 12 Oct 2007 08:40:38 +0000 (-0700) Subject: [BNX2]: Refine napi poll loop. X-Git-Tag: v2.6.24-rc1~1403^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dee6421581d3484e9a01d403dbf158161942db6;p=pandora-kernel.git [BNX2]: Refine napi poll loop. Need to read and store sblk->status_idx before checking for more work. The status idx is later written back to the hardware when enabling interrupts to acknowledge how much work has been processed. If the order is reversed, we can end up acknowledging work we haven't processed. When completing bnx2_poll(), we should always break out of the while loop and return work_done instead of returning 0. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed