@@ -566,11 +566,13 @@ fec_enet_tx(struct net_device *ndev)
struct bufdesc *bdp;
unsigned short status;
struct sk_buff *skb;
+ struct timeval time1, time2;
fep = netdev_priv(ndev);
spin_lock(&fep->hw_lock);
bdp = fep->dirty_tx;
+ do_gettimeofday(&time1);
while (((status = bdp->cbd_sc) & BD_ENET_TX_READY) == 0) {
if (bdp == fep->cur_tx && fep->tx_full == 0)
break;
@@ -627,6 +629,8 @@ fec_enet_tx(struct net_device *ndev)
netif_wake_queue(ndev);
}
}
+ do_gettimeofday(&time2);
+ printk("*** %s: %lu\n", __func__, timeval_to_ns(&time2) - timeval_to_ns(&time1));
fep->dirty_tx = bdp;
spin_unlock(&fep->hw_lock);
}