Vladislav Zolotarov c16cc0b464 bnx2x: Tx barriers and locks
[Resending with the proper subject. Sorry for the mess. ]

This patch is based on the RFC of Stanislaw Gruszka.

More specifically it fixes two possible races:
- One, described by Stanislaw, may lead to permanent disabling of the Tx
queue.
This is fixed by adding the smp_wmb() to propagate the BD consumer
change towards the memory.
- Second may lead to bnx2x_start_xmit() returning NETDEV_TX_BUSY.
This is fixed by taking a tx_lock() before rechecking the number of
available Tx BDs.

thanks,
vlad

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-28 18:37:12 -08:00
..
2010-01-03 21:42:50 -08:00
2010-02-28 01:03:05 -08:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2009-09-01 01:13:50 -07:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2010-02-08 22:44:18 -08:00
2010-02-28 00:43:33 -08:00
2010-02-16 15:19:03 -08:00
2009-08-12 23:03:00 -07:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2009-11-05 20:00:29 -08:00
2010-02-28 18:37:12 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2009-11-11 19:22:21 -08:00
2009-10-11 11:20:58 -07:00
2009-04-16 02:20:08 -07:00
2009-09-07 01:56:52 -07:00
2009-11-20 15:35:04 -08:00
2009-10-13 11:48:18 -07:00
2009-10-20 19:11:06 -07:00
2010-01-09 23:00:32 -08:00
2010-01-28 06:01:35 -08:00
2009-04-16 02:20:21 -07:00
2009-12-26 20:38:23 -08:00
2010-01-18 00:29:19 -08:00
2009-04-29 17:32:34 -07:00
2010-02-26 02:08:47 -08:00
2009-10-01 15:14:54 -07:00
2010-02-12 16:21:01 -08:00
2009-12-11 16:16:33 -08:00
2010-02-26 02:08:42 -08:00
2010-02-28 00:43:34 -08:00
2010-02-17 17:27:40 -08:00
2010-02-17 16:35:17 -08:00
2009-11-26 15:51:29 -08:00