diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2006-09-27 21:53:22 +0200 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-09-27 21:53:22 +0200 |
commit | dc45010e28bc4a1bfa6043eee31d1c59e93e1546 (patch) | |
tree | 219ee762d3da6ed956f9c15ef495a8a076e21c61 /drivers/net/e100.c | |
parent | e1000: keep .suspend and .resume driver methods in CONFIG_PM (diff) | |
download | linux-dc45010e28bc4a1bfa6043eee31d1c59e93e1546.tar.xz linux-dc45010e28bc4a1bfa6043eee31d1c59e93e1546.zip |
e100: Add debugging code for cb cleaning.
Refine cb cleaning debug printout and print out all cleaned cbs' status.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r-- | drivers/net/e100.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index ab0868cb120c..3909829d5199 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c @@ -1657,13 +1657,14 @@ static int e100_tx_clean(struct nic *nic) spin_lock(&nic->cb_lock); - DPRINTK(TX_DONE, DEBUG, "cb->status = 0x%04X\n", - nic->cb_to_clean->status); - /* Clean CBs marked complete */ for(cb = nic->cb_to_clean; cb->status & cpu_to_le16(cb_complete); cb = nic->cb_to_clean = cb->next) { + DPRINTK(TX_DONE, DEBUG, "cb[%d]->status = 0x%04X\n", + (int)(((void*)cb - (void*)nic->cbs)/sizeof(struct cb)), + cb->status); + if(likely(cb->skb != NULL)) { nic->net_stats.tx_packets++; nic->net_stats.tx_bytes += cb->skb->len; |