]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/mlx4: Unregister IB device prior to CLOSE PORT command
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Thu, 19 Mar 2009 02:49:54 +0000 (19:49 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Mar 2009 02:49:54 +0000 (19:49 -0700)
commita6a47771b113be8e694aedd80f66ea94d05bd8df
treecd301081f57a9813e0eae4e7b58c9351e13241b2
parent27bf91d6a0d5a9c7224e8687754249bba67dd4cf
IB/mlx4: Unregister IB device prior to CLOSE PORT command

According to the ConnectX programmer's reference manual, all
operations should be stopped, all QPs should be torn down and all WQEs
flushed before the CLOSE_PORT command is invoked.  In some cases
reversing the order of operations (as implemented now) could cause
a loss of completions.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/main.c