]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf07043d1c9c2d708965761912d7d342bc4d5d8b0
tree247c1a9d52cab4e47ee238ce7e1e9a7c2492aff7
parent2eb98a6578275181d5af0e5e90debb8b8c783f77
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