summaryrefslogtreecommitdiff
path: root/target/linux/rb532
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-11-16 07:31:28 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-11-16 07:31:28 +0000
commitedea76ab775cfbf40ac65ded5351af2515cbf86d (patch)
tree68b9e079bd0c9b946c4d87e6b161382901d76a78 /target/linux/rb532
parentd8faf285a828f0a5fa851505f4482a53763f3dd6 (diff)
downloadmtk-20170518-edea76ab775cfbf40ac65ded5351af2515cbf86d.zip
mtk-20170518-edea76ab775cfbf40ac65ded5351af2515cbf86d.tar.gz
mtk-20170518-edea76ab775cfbf40ac65ded5351af2515cbf86d.tar.bz2
Fix tx stats (#2705)
SVN-Revision: 9570
Diffstat (limited to 'target/linux/rb532')
-rw-r--r--target/linux/rb532/files/drivers/net/korina.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/rb532/files/drivers/net/korina.c b/target/linux/rb532/files/drivers/net/korina.c
index 6dce2b9..e89f334 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++;