Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122779
b: refs/heads/master
c: e98def1
h: refs/heads/master
i:
  122777: 1301169
  122775: 627b0a0
v: v3
  • Loading branch information
Jesper Dangaard Brouer authored and David S. Miller committed Dec 19, 2008
1 parent 2d54118 commit eee28f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d231776fda4a1ed754298720c5fbc29eb34f130c
refs/heads/master: e98def1f71fa0a6a37e12a56eb52ce5ed9e2e800
4 changes: 3 additions & 1 deletion trunk/drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3618,7 +3618,9 @@ static int niu_rx_work(struct niu *np, struct rx_ring_info *rp, int budget)

nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat);

niu_sync_rx_discard_stats(np, rp, 0x7FFF);
/* Only sync discards stats when qlen indicate potential for drops */
if (qlen > 10)
niu_sync_rx_discard_stats(np, rp, 0x7FFF);

return work_done;
}
Expand Down

0 comments on commit eee28f3

Please sign in to comment.