Browse Source

Fix tx stats (#2705)

SVN-Revision: 9570
Florian Fainelli 18 years ago
parent
commit
edea76ab77
1 changed files with 1 additions and 0 deletions
  1. 1 0
      target/linux/rb532/files/drivers/net/korina.c

+ 1 - 0
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++;