forcedeth: Account for consumed budget in napi poll
authorTom Herbert <therbert@google.com>
Wed, 5 May 2010 18:15:21 +0000 (18:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 04:24:17 +0000 (21:24 -0700)
commitd951f7250305adaea5f25398b70023681183d0cb
treefcefaffedb3ec24b876713d6afd2eab66852c6d9
parent0294b6f78f2dd9d94fa0deec28e8845a7fb43ac3
forcedeth: Account for consumed budget in napi poll

Repeated calls to nv_rx_process in napi poll routine do not take
portion of budget that has been consumed in previous calls.  Fix by
subtracting the number of packets processed.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c