commit | 3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836 | [log] [tgz] |
---|---|---|
author | dean gaudet <dean@arctic.org> | Mon Jan 01 19:39:09 2007 -0800 |
committer | David S. Miller <davem@sunset.davemloft.net> | Wed Jan 03 18:38:08 2007 -0800 |
tree | 2afcd5f1c69b046ed6d3da7ba6c47bc47da61c43 | |
parent | a7ec3f5289681e9d63b65db5f56857f998812b4b [diff] |
[NET]: ifb double-counts packets Signed-off-by: dean gaudet <dean@arctic.org> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index c26a4b8..ca2b21f 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c
@@ -154,8 +154,8 @@ 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: