Skip to content

Commit 44384cb

Browse files
committed
Setup crosslink before sending link force down message
Call switchtec_ntb_setup_crosslink() to try to setup the crosslink before sending the link force down message to peer. - If the peer switch's NT link is still up and not aware of the local driver is being reloaded, the call to switchtec_ntb_setup_crosslink() will make the local crosslink properly configured and the force link down message sent to the peer switch to bring down the link. - Otherwise, the call to switchtec_ntb_setup_crosslink() would fail and link force down message not sent to the peer switch.
1 parent 4332be8 commit 44384cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ntb_hw_switchtec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,7 @@ static int switchtec_ntb_add(struct device *dev,
19881988
* still up. Tell them to force it down (it will go back up
19891989
* once we register the ntb device).
19901990
*/
1991+
switchtec_ntb_setup_crosslink(sndev);
19911992
switchtec_ntb_send_msg(sndev, LINK_MESSAGE, MSG_LINK_FORCE_DOWN);
19921993

19931994
rc = ntb_register_device(&sndev->ntb);

0 commit comments

Comments
 (0)