[SUNGEM]: Fix NAPI assertion failure.
authorDavid S. Miller <davem@davemloft.net>
Sun, 23 Mar 2008 10:35:12 +0000 (03:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Mar 2008 10:35:12 +0000 (03:35 -0700)
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>

No differences found