From: Florian Fainelli Date: Fri, 16 Nov 2007 07:31:28 +0000 (+0000) Subject: Fix tx stats (#2705) X-Git-Tag: reboot~27627 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=edea76ab775cfbf40ac65ded5351af2515cbf86d;p=oweals%2Fopenwrt.git Fix tx stats (#2705) SVN-Revision: 9570 --- diff --git a/target/linux/rb532/files/drivers/net/korina.c b/target/linux/rb532/files/drivers/net/korina.c index 6dce2b921b..e89f334cf2 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++;