diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-05-25 07:25:34 -0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-05-25 07:25:34 -0400 |
commit | 9733bb8e9ce0078f55405ce470a62ec0a551fe99 (patch) | |
tree | a8db59b6a76c678db1d1282ba7458d72f4f8a093 /drivers/net/arm | |
parent | 11c79740d3c03cb81f84e98cf2e2dbd8d9bb53cd (diff) |
IXP4xx: Change QMgr function names to qmgr_stat_*_watermark and clean the comments.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/ixp4xx_eth.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index 672c9626b9ca..b6d188115caf 100644 --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c | |||
@@ -513,8 +513,8 @@ static int eth_poll(struct napi_struct *napi, int budget) | |||
513 | #endif | 513 | #endif |
514 | napi_complete(napi); | 514 | napi_complete(napi); |
515 | qmgr_enable_irq(rxq); | 515 | qmgr_enable_irq(rxq); |
516 | if (!qmgr_stat_nearly_empty(rxq) && | 516 | if (!qmgr_stat_below_low_watermark(rxq) && |
517 | napi_reschedule(napi)) { /* really empty in fact */ | 517 | napi_reschedule(napi)) { /* not empty again */ |
518 | #if DEBUG_RX | 518 | #if DEBUG_RX |
519 | printk(KERN_DEBUG "%s: eth_poll" | 519 | printk(KERN_DEBUG "%s: eth_poll" |
520 | " napi_reschedule successed\n", | 520 | " napi_reschedule successed\n", |
@@ -631,10 +631,9 @@ static void eth_txdone_irq(void *unused) | |||
631 | port->tx_buff_tab[n_desc] = NULL; | 631 | port->tx_buff_tab[n_desc] = NULL; |
632 | } | 632 | } |
633 | 633 | ||
634 | /* really empty in fact */ | 634 | start = qmgr_stat_below_low_watermark(port->plat->txreadyq); |
635 | start = qmgr_stat_nearly_empty(port->plat->txreadyq); | ||
636 | queue_put_desc(port->plat->txreadyq, phys, desc); | 635 | queue_put_desc(port->plat->txreadyq, phys, desc); |
637 | if (start) { | 636 | if (start) { /* TX-ready queue was empty */ |
638 | #if DEBUG_TX | 637 | #if DEBUG_TX |
639 | printk(KERN_DEBUG "%s: eth_txdone_irq xmit ready\n", | 638 | printk(KERN_DEBUG "%s: eth_txdone_irq xmit ready\n", |
640 | port->netdev->name); | 639 | port->netdev->name); |
@@ -710,14 +709,14 @@ static int eth_xmit(struct sk_buff *skb, struct net_device *dev) | |||
710 | queue_put_desc(TX_QUEUE(port->id), tx_desc_phys(port, n), desc); | 709 | queue_put_desc(TX_QUEUE(port->id), tx_desc_phys(port, n), desc); |
711 | dev->trans_start = jiffies; | 710 | dev->trans_start = jiffies; |
712 | 711 | ||
713 | if (qmgr_stat_nearly_empty(txreadyq)) { /* really empty in fact */ | 712 | if (qmgr_stat_below_low_watermark(txreadyq)) { /* empty */ |
714 | #if DEBUG_TX | 713 | #if DEBUG_TX |
715 | printk(KERN_DEBUG "%s: eth_xmit queue full\n", dev->name); | 714 | printk(KERN_DEBUG "%s: eth_xmit queue full\n", dev->name); |
716 | #endif | 715 | #endif |
717 | netif_stop_queue(dev); | 716 | netif_stop_queue(dev); |
718 | /* we could miss TX ready interrupt */ | 717 | /* we could miss TX ready interrupt */ |
719 | /* really empty in fact */ | 718 | /* really empty in fact */ |
720 | if (!qmgr_stat_nearly_empty(txreadyq)) { | 719 | if (!qmgr_stat_below_low_watermark(txreadyq)) { |
721 | #if DEBUG_TX | 720 | #if DEBUG_TX |
722 | printk(KERN_DEBUG "%s: eth_xmit ready again\n", | 721 | printk(KERN_DEBUG "%s: eth_xmit ready again\n", |
723 | dev->name); | 722 | dev->name); |