Skip to content

Commit

Permalink
tc35815: Fix return value of tc35815_do_interrupt when NAPI enabled
Browse files Browse the repository at this point in the history
Return received count correctly even if tx completed at the same time.
Currently NAPI is disabled for this driver so this patch does not fix
any real problem.

Signed-off-by: Atsushi Nemoto <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
atsushi-nemoto authored and davem330 committed Oct 28, 2009
1 parent 31b73ab commit 02c5c8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/tc35815.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,12 @@ static int tc35815_do_interrupt(struct net_device *dev, u32 status)
lp->lstats.tx_ints++;
tc35815_txdone(dev);
netif_wake_queue(dev);
#ifdef TC35815_NAPI
if (ret < 0)
ret = 0;
#else
ret = 0;
#endif
}
return ret;
}
Expand Down

0 comments on commit 02c5c8e

Please sign in to comment.