Skip to content

Commit 02379e5

Browse files
committed
ntb_hw_switchtec: remove unnecessary shared MW reinit in crosslink case
The reinit of shared MW when receive FORCE_LINK_DOWN message is required for non-crosslink case, because the LUT settings for shared MW of peer is reset after reboot. But in crosslink case, the LUT setttings in the virtual partition will not be impact by the peer's reboot, therefore it is unnecessary to reinit it. Signed-off-by: Wesley Sheng <[email protected]>
1 parent c31a953 commit 02379e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ntb_hw_switchtec.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,9 @@ static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev)
14561456
{
14571457
int rc;
14581458

1459+
if (crosslink_is_enabled(sndev))
1460+
return 0;
1461+
14591462
dev_info(&sndev->stdev->dev, "reinitialize shared memory window\n");
14601463
rc = config_rsvd_lut_win(sndev, sndev->mmio_peer_ctrl, 0,
14611464
sndev->self_partition,

0 commit comments

Comments
 (0)