]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlx4: Setting new port types after all interfaces unregistered
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Tue, 21 Feb 2012 03:41:07 +0000 (03:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2012 20:27:24 +0000 (15:27 -0500)
commit3d8f93083be54696d3b7f8e8c6c70d411d01f9e8
treec517910d1381123cfffdfd4ce996a8cc50fc68f1
parent730c41d5ba583a9608300fc4e6cf236957cfe02a
mlx4: Setting new port types after all interfaces unregistered

In port type change flow, need to set the new port types only after
all interfaces have finished the unregister process.
Otherwise, during unregister, one of the interfaces might issue a SET_PORT
command with wrong port types, it can cause bad FW behavior.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c