Skip to content

Commit

Permalink
[PATCH] 3c59x: correct rx_dropped counting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John W. Linville authored and Linus Torvalds committed Nov 7, 2005
1 parent bb531fc commit 35b3067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/3c59x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 35b3067

Please sign in to comment.