|
@@ -513,8 +513,8 @@ static int eth_poll(struct napi_struct *napi, int budget)
|
|
#endif
|
|
#endif
|
|
napi_complete(napi);
|
|
napi_complete(napi);
|
|
qmgr_enable_irq(rxq);
|
|
qmgr_enable_irq(rxq);
|
|
- if (!qmgr_stat_nearly_empty(rxq) &&
|
|
|
|
- napi_reschedule(napi)) { /* really empty in fact */
|
|
|
|
|
|
+ if (!qmgr_stat_below_low_watermark(rxq) &&
|
|
|
|
+ napi_reschedule(napi)) { /* not empty again */
|
|
#if DEBUG_RX
|
|
#if DEBUG_RX
|
|
printk(KERN_DEBUG "%s: eth_poll"
|
|
printk(KERN_DEBUG "%s: eth_poll"
|
|
" napi_reschedule successed\n",
|
|
" napi_reschedule successed\n",
|
|
@@ -631,10 +631,9 @@ static void eth_txdone_irq(void *unused)
|
|
port->tx_buff_tab[n_desc] = NULL;
|
|
port->tx_buff_tab[n_desc] = NULL;
|
|
}
|
|
}
|
|
|
|
|
|
- /* really empty in fact */
|
|
|
|
- start = qmgr_stat_nearly_empty(port->plat->txreadyq);
|
|
|
|
|
|
+ start = qmgr_stat_below_low_watermark(port->plat->txreadyq);
|
|
queue_put_desc(port->plat->txreadyq, phys, desc);
|
|
queue_put_desc(port->plat->txreadyq, phys, desc);
|
|
- if (start) {
|
|
|
|
|
|
+ if (start) { /* TX-ready queue was empty */
|
|
#if DEBUG_TX
|
|
#if DEBUG_TX
|
|
printk(KERN_DEBUG "%s: eth_txdone_irq xmit ready\n",
|
|
printk(KERN_DEBUG "%s: eth_txdone_irq xmit ready\n",
|
|
port->netdev->name);
|
|
port->netdev->name);
|
|
@@ -710,14 +709,14 @@ static int eth_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
queue_put_desc(TX_QUEUE(port->id), tx_desc_phys(port, n), desc);
|
|
queue_put_desc(TX_QUEUE(port->id), tx_desc_phys(port, n), desc);
|
|
dev->trans_start = jiffies;
|
|
dev->trans_start = jiffies;
|
|
|
|
|
|
- if (qmgr_stat_nearly_empty(txreadyq)) { /* really empty in fact */
|
|
|
|
|
|
+ if (qmgr_stat_below_low_watermark(txreadyq)) { /* empty */
|
|
#if DEBUG_TX
|
|
#if DEBUG_TX
|
|
printk(KERN_DEBUG "%s: eth_xmit queue full\n", dev->name);
|
|
printk(KERN_DEBUG "%s: eth_xmit queue full\n", dev->name);
|
|
#endif
|
|
#endif
|
|
netif_stop_queue(dev);
|
|
netif_stop_queue(dev);
|
|
/* we could miss TX ready interrupt */
|
|
/* we could miss TX ready interrupt */
|
|
/* really empty in fact */
|
|
/* really empty in fact */
|
|
- if (!qmgr_stat_nearly_empty(txreadyq)) {
|
|
|
|
|
|
+ if (!qmgr_stat_below_low_watermark(txreadyq)) {
|
|
#if DEBUG_TX
|
|
#if DEBUG_TX
|
|
printk(KERN_DEBUG "%s: eth_xmit ready again\n",
|
|
printk(KERN_DEBUG "%s: eth_xmit ready again\n",
|
|
dev->name);
|
|
dev->name);
|