]> git.hungrycats.org Git - linux/commit
SUNGEM: Fix NAPI assertion failure.
authorDavid S. Miller <davem@davemloft.net>
Mon, 7 Apr 2008 06:37:08 +0000 (23:37 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:24 +0000 (18:53 -0700)
commitd94e90a23b5f20d4aadf592d049a6de3c3260f07
tree39ffb7bbb11d466687a8c22ec6c3b6788f95055e
parentc4e67d75cd6944616acef4a079967d1d23c6a3bd
SUNGEM: Fix NAPI assertion failure.

Upstream commit: da990a2402aeaee84837f29054c4628eb02f7493

As reported by Johannes Berg:

I started getting this warning with recent kernels:

[  773.908927] ------------[ cut here ]------------
[  773.908954] Badness at net/core/dev.c:2204
 ...

If we loop more than once in gem_poll(), we'll
use more than the real budget in our gem_rx()
calls, thus eventually trigger the caller's
assertions in net_rx_action().

Subtract "work_done" from "budget" for the second
arg to gem_rx() to fix the bug.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/sungem.c