diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-06-26 10:06:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-01 17:10:17 -0700 |
commit | 16f62d9bed0cdee5f9341b64cc7144869282122d (patch) | |
tree | f3f2a9df3d3de29f89da65b6a0184b0474819b50 /drivers/net/mii.c | |
parent | 412bce83ac786197d0b2805c5bcded4d95cdeeb0 (diff) |
net: systemport: fix TX NAPI work done return value
Although we do not limit the number of packets the TX completion
function bcm_sysport_tx_reclaim() is allowed to reclaim, we were still
using its return value as-is. This means that we could hit the WARN() in
net/core/dev.c where work_done >= budget.
Make sure we do exit the NAPI context when the TX ring is empty, and
pretend there was no work to do.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mii.c')
0 files changed, 0 insertions, 0 deletions