Yevgeny Petrilin c18520bd1b net/mlx4_en: Fixing TX queue stop/wake flow
Removing the ring->blocked flag, it is redundant and leads to a race:

We close the TX queue and then set the "blocked" flag.
Between those 2 operations the completion function can check the "blocked"
flag, sees that it is 0, and wouldn't open the TX queue.

Using netif_tx_queue_stopped to check the state of the queue to avoid this race.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-03 16:49:02 -07:00
..
2012-06-06 09:31:33 -07:00
2012-06-06 09:31:33 -07:00
2012-06-06 09:31:33 -07:00
2012-07-16 22:38:27 -07:00
2012-07-16 22:16:40 -07:00
2012-07-26 14:30:23 -07:00
2012-05-02 20:52:48 -04:00
2012-07-09 14:42:30 -07:00
2012-06-06 09:31:33 -07:00
2012-07-16 22:38:27 -07:00
2012-06-06 09:31:33 -07:00
2012-07-16 22:38:27 -07:00
2012-07-16 22:38:27 -07:00
2012-07-18 09:40:54 -07:00
2012-07-16 22:38:27 -07:00