[NET]: ifb double-counts packets
authordean gaudet <dean@arctic.org>
Tue, 2 Jan 2007 03:39:09 +0000 (19:39 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 4 Jan 2007 02:38:08 +0000 (18:38 -0800)
Signed-off-by: dean gaudet <dean@arctic.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ifb.c

index c26a4b8e552a52274832b551a45c2d47ca357da7..ca2b21f9d44489f4008761764f520f90a8956053 100644 (file)
@@ -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: