Merge madwifi-dfs to trunk : r3121

When hardware queue is full, stop the linux device queue.
This fix a bug where CPU was 100% in softirq context


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3122 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
benoit 2008-01-08 15:59:33 +00:00
parent 7fd69f6877
commit b4d7a14f0a

View File

@ -3032,6 +3032,7 @@ ath_hardstart(struct sk_buff *skb, struct net_device *dev)
if (txq->axq_depth > TAIL_DROP_COUNT) {
sc->sc_stats.ast_tx_discard++;
/* queue is full, let the kernel backlog the skb */
netif_stop_queue(dev);
requeue = 1;
goto hardstart_fail;
}