aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/3c59x.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2005-11-07 03:58:08 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 10:53:25 -0500
commit35b306743d17cdd31357e5de9ce6c549e5d6756e (patch)
tree0aa8330f1928313afe819a311e424aed8615bc9c /drivers/net/3c59x.c
parentbb531fc071f9017b4809c806f71e6a7f49b67289 (diff)
[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>
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r--drivers/net/3c59x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index be4f962d27b0..413b82c5994c 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -2608,8 +2608,8 @@ static int vortex_rx(struct net_device *dev)
2608 } else if (vortex_debug > 0) 2608 } else if (vortex_debug > 0)
2609 printk(KERN_NOTICE "%s: No memory to allocate a sk_buff of " 2609 printk(KERN_NOTICE "%s: No memory to allocate a sk_buff of "
2610 "size %d.\n", dev->name, pkt_len); 2610 "size %d.\n", dev->name, pkt_len);
2611 vp->stats.rx_dropped++;
2611 } 2612 }
2612 vp->stats.rx_dropped++;
2613 issue_and_wait(dev, RxDiscard); 2613 issue_and_wait(dev, RxDiscard);
2614 } 2614 }
2615 2615