提交 35b30674 编写于 作者: J John W. Linville 提交者: Linus Torvalds

[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: NJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 bb531fc0
...@@ -2608,8 +2608,8 @@ static int vortex_rx(struct net_device *dev) ...@@ -2608,8 +2608,8 @@ static int vortex_rx(struct net_device *dev)
} else if (vortex_debug > 0) } else if (vortex_debug > 0)
printk(KERN_NOTICE "%s: No memory to allocate a sk_buff of " printk(KERN_NOTICE "%s: No memory to allocate a sk_buff of "
"size %d.\n", dev->name, pkt_len); "size %d.\n", dev->name, pkt_len);
vp->stats.rx_dropped++;
} }
vp->stats.rx_dropped++;
issue_and_wait(dev, RxDiscard); issue_and_wait(dev, RxDiscard);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册