mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[PATCH] 3c59x: correct rx_dropped counting
Only increment rx_dropped in case of lack of resources (i.e. not for frames with errors). Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
bb531fc071
commit
35b306743d
1 changed files with 1 additions and 1 deletions
|
@ -2608,8 +2608,8 @@ static int vortex_rx(struct net_device *dev)
|
|||
} else if (vortex_debug > 0)
|
||||
printk(KERN_NOTICE "%s: No memory to allocate a sk_buff of "
|
||||
"size %d.\n", dev->name, pkt_len);
|
||||
vp->stats.rx_dropped++;
|
||||
}
|
||||
vp->stats.rx_dropped++;
|
||||
issue_and_wait(dev, RxDiscard);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue