Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

atl2: add tx bytes statistic

Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Jay Cliburn and committed by
Jeff Garzik
e2f092ff 1545e205

+3 -1
+3 -1
drivers/net/atlx/atl2.c
··· 522 522 atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); 523 523 524 524 /* tx statistics: */ 525 - if (txs->ok) 525 + if (txs->ok) { 526 + adapter->net_stats.tx_bytes += txs->pkt_size; 526 527 adapter->net_stats.tx_packets++; 528 + } 527 529 else 528 530 adapter->net_stats.tx_errors++; 529 531