net/mlx4_en: Fix a race between napi poll function and RX ring cleanup
authorEugenia Emantayev <eugenia@mellanox.com>
Tue, 25 Jun 2013 09:09:33 +0000 (12:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:29:39 +0000 (16:29 -0700)
commit0cc5c8bf11852dec3225fda2f53a599243095d23
tree247c1a9d52cab4e47ee238ce7e1e9a7c2492aff7
parent9e19b54554fac0a1c1c92f0a10b29d216b84a470
net/mlx4_en: Fix a race between napi poll function and RX ring cleanup

The RX rings were cleaned while there was still possible RX traffic completion
handling.
Change the sequance of events so that the port is closed and the QPs are being
stopped before RX cleanup.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c