From 6cc483ae403104aa16bbacb7901b6a0f2c9f3d99 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 16 Nov 2007 07:31:28 +0000 Subject: Fix tx stats (#2705) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9570 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/rb532/files/drivers/net/korina.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/rb532/files/drivers') diff --git a/target/linux/rb532/files/drivers/net/korina.c b/target/linux/rb532/files/drivers/net/korina.c index 6dce2b921..e89f334cf 100644 --- a/target/linux/rb532/files/drivers/net/korina.c +++ b/target/linux/rb532/files/drivers/net/korina.c @@ -910,6 +910,7 @@ static void rc32434_tx_tasklet(unsigned long tx_data_dev) } else if (IS_TX_TOK(devcs)) { lp->stats.tx_packets++; + lp->stats.tx_bytes+=lp->tx_skb[lp->tx_next_done]->len; } else { lp->stats.tx_errors++; -- cgit v1.2.3