forcedeath: Fix bql support for forcedeath
authorIgor Maravic <igorm@etf.rs>
Thu, 1 Dec 2011 23:48:20 +0000 (23:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2011 17:39:12 +0000 (12:39 -0500)
commit7505afe28c16a8d386624930a018d0052c75d687
tree8b265a9d687e75267ea3b114228e44b8716e8079
parent1d214fa34fc7878d90e0963f9eb4895510db5e48
forcedeath: Fix bql support for forcedeath

Moved netdev_completed_queue() out of while loop in function nv_tx_done_optimized().
Because this function was in while loop,
BUG_ON(count > dql->num_queued - dql->num_completed)
was hit in dql_completed().

Signed-off-by: Igor Maravic <igorm@etf.rs>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c