Fix tx stats (#2705)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 16 Nov 2007 07:31:28 +0000 (07:31 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 16 Nov 2007 07:31:28 +0000 (07:31 +0000)
SVN-Revision: 9570

target/linux/rb532/files/drivers/net/korina.c

index 6dce2b921b932d18a8d76c528daa8229396fcefa..e89f334cf20b1e5c91190ccdd6ce018679a38534 100644 (file)
@@ -910,6 +910,7 @@ static void rc32434_tx_tasklet(unsigned long tx_data_dev)
                }
                else if (IS_TX_TOK(devcs)) {
                        lp->stats.tx_packets++;
                }
                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++;
                }
                else {
                        lp->stats.tx_errors++;