atl2: add tx bytes statistic
Subsystems (2)
PATCH 1/1 atl2: add tx bytes statistic
From: Jay Cliburn <[email protected]>
Date: Sat, 20 Sep 2008 17:37:05 -0500
Subject: [PATCH] atl2: add tx bytes statistic
Let's see how many bytes have been transmitted.
Signed-off-by Jay Cliburn <[email protected]>
--- drivers/net/atlx/atl2.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/atlx/atl2.c +3 -1
@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)atomic_set (&adapter->txd_read_ptr, (int )txd_read_ptr);/* tx statistics: */ -if (txs->ok) +if (txs->ok) { + adapter->net_stats.tx_bytes += txs->pkt_size; adapter->net_stats.tx_packets++; + }else adapter->net_stats.tx_errors++;
Signature · 1 line
1.5.5.1
Jeff Garzik
AppliedQuoted 16 lines · Jay Cliburn
From: Jay Cliburn <[email protected]>
Date: Sat, 20 Sep 2008 17:37:05 -0500
Subject: [PATCH] atl2: add tx bytes statisticLet's see how many bytes have been transmitted.
Signed-off-by Jay Cliburn <[email protected]>--- drivers/net/atlx/atl2.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)drivers/net/atlx/atl2.c +0
-0
drivers/net/atlx/atl2.c static void atl2_intr_tx(struct atl2_adapter *adapter) · line 527
Quoted 7 lines
drivers/net/atlx/atl2.c +2
-1@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)atomic_set (&adapter->txd_read_ptr, (int )txd_read_ptr);/* tx statistics: */ -if (txs->ok) +if (txs->ok) { + adapter->net_stats.tx_bytes += txs->pkt_size; adapter->net_stats.tx_packets++;
applied