aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bna/bnad.h
diff options
context:
space:
mode:
authorRasesh Mody <rmody@brocade.com>2010-12-23 16:45:05 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-25 22:16:01 -0500
commitf7c0fa4cd5dcf58dd95b216d2c33444a3b4a44e0 (patch)
tree5836683f415a5806ffccfbb16bac2ede9980587d /drivers/net/bna/bnad.h
parent886f7fedb0cee56acca7620d89186669273d3d56 (diff)
bna: Fix for TX queue
Change Details: - Call netif_wake_queue() if we have freed up sufficient elements at the end of completion processing - Add netif_queue_stopped counter back to bnad_drv_stats {} - Get netif_queue_stopped value from stack - Remove BUG_ON() on value returned by pci_unmap_addr() Signed-off-by: Debashis Dutt <ddutt@brocade.com> Signed-off-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bna/bnad.h')
-rw-r--r--drivers/net/bna/bnad.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/bna/bnad.h b/drivers/net/bna/bnad.h
index f59685a5543d..1954dea4cbf2 100644
--- a/drivers/net/bna/bnad.h
+++ b/drivers/net/bna/bnad.h
@@ -126,6 +126,7 @@ struct bnad_completion {
126struct bnad_drv_stats { 126struct bnad_drv_stats {
127 u64 netif_queue_stop; 127 u64 netif_queue_stop;
128 u64 netif_queue_wakeup; 128 u64 netif_queue_wakeup;
129 u64 netif_queue_stopped;
129 u64 tso4; 130 u64 tso4;
130 u64 tso6; 131 u64 tso6;
131 u64 tso_err; 132 u64 tso_err;
@@ -308,8 +309,10 @@ extern void bnad_cleanup_rx(struct bnad *bnad, uint rx_id);
308extern void bnad_dim_timer_start(struct bnad *bnad); 309extern void bnad_dim_timer_start(struct bnad *bnad);
309 310
310/* Statistics */ 311/* Statistics */
311extern void bnad_netdev_qstats_fill(struct bnad *bnad, struct rtnl_link_stats64 *stats); 312extern void bnad_netdev_qstats_fill(struct bnad *bnad,
312extern void bnad_netdev_hwstats_fill(struct bnad *bnad, struct rtnl_link_stats64 *stats); 313 struct rtnl_link_stats64 *stats);
314extern void bnad_netdev_hwstats_fill(struct bnad *bnad,
315 struct rtnl_link_stats64 *stats);
313 316
314/** 317/**
315 * MACROS 318 * MACROS