View | Details | Raw Unified | Return to bug 13548
Collapse All | Expand All

(-)a/drivers/net/atl2/at_main.c (-1 / +5 lines)
Lines 2096-2102 Link Here
2096
        atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
2096
        atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
2097
        
2097
        
2098
        // tx statistics:
2098
        // tx statistics:
2099
        if (txs->ok)            adapter->net_stats.tx_packets++;
2099
        if (txs->ok) {
2100
    	    // Add packet size to byte statistics
2101
            adapter->net_stats.tx_bytes += txs->pkt_size;
2102
            adapter->net_stats.tx_packets++;
2103
        }
2100
        else                    adapter->net_stats.tx_errors++;
2104
        else                    adapter->net_stats.tx_errors++;
2101
        if (txs->defer)         adapter->net_stats.collisions++;
2105
        if (txs->defer)         adapter->net_stats.collisions++;
2102
        if (txs->abort_col)     adapter->net_stats.tx_aborted_errors++;
2106
        if (txs->abort_col)     adapter->net_stats.tx_aborted_errors++;

Return to bug 13548