Commit 3136dcb3 authored by dean gaudet's avatar dean gaudet Committed by David S. Miller

[NET]: ifb double-counts packets

Signed-off-by: default avatardean gaudet <dean@arctic.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment