From: dean gaudet Date: Tue, 2 Jan 2007 03:39:09 +0000 (-0800) Subject: [NET]: ifb double-counts packets X-Git-Tag: v2.6.20-rc4~85^2~14 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836;p=linux-2.6 [NET]: ifb double-counts packets Signed-off-by: dean gaudet Signed-off-by: David S. Miller --- diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index c26a4b8e55..ca2b21f9d4 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c @@ -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: