]> 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)
commit6bfe5683b8cfdf75f18db6452c7d40c753f89c4f
tree247c1a9d52cab4e47ee238ce7e1e9a7c2492aff7
parentc92930dd21918503a9a57eb592b3795f058fa531
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