]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/atl2_add_tx_bytes_statistic.patch
Fix core38 updater replace openvpn config.
[people/pmueller/ipfire-2.x.git] / src / patches / atl2_add_tx_bytes_statistic.patch
1 diff -Naur atl2-2.0.5.org/atl2_main.c atl2-2.0.5/atl2_main.c
2 --- atl2-2.0.5.org/atl2_main.c 2008-08-04 17:53:21.000000000 +0200
3 +++ atl2-2.0.5/atl2_main.c 2008-10-15 18:53:12.000000000 +0200
4 @@ -572,8 +572,10 @@
5 atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
6
7 // tx statistics:
8 - if (txs->ok)
9 + if (txs->ok) {
10 + adapter->net_stats.tx_bytes += txs->pkt_size;
11 adapter->net_stats.tx_packets++;
12 + }
13 else
14 adapter->net_stats.tx_errors++;
15