提交 3136dcb3 编写于 作者: D dean gaudet 提交者: David S. Miller

[NET]: ifb double-counts packets

Signed-off-by: Ndean gaudet <dean@arctic.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a7ec3f52
......@@ -154,8 +154,8 @@ static int ifb_xmit(struct sk_buff *skb, struct net_device *dev)
int ret = 0;
u32 from = G_TC_FROM(skb->tc_verd);
stats->tx_packets++;
stats->tx_bytes+=skb->len;
stats->rx_packets++;
stats->rx_bytes+=skb->len;
if (!from || !skb->input_dev) {
dropped:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册