summaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
authordean gaudet <dean@arctic.org>2007-01-02 04:39:09 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-01-04 03:38:08 +0100
commit3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836 (patch)
tree2afcd5f1c69b046ed6d3da7ba6c47bc47da61c43 /drivers/net/ifb.c
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart (diff)
downloadlinux-3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836.tar.xz
linux-3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836.zip
[NET]: ifb double-counts packets
Signed-off-by: dean gaudet <dean@arctic.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ifb.c')
-rw-r--r--drivers/net/ifb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index c26a4b8e552a..ca2b21f9d444 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: