Skip to content

Commit 9ac6b1d

Browse files
JoeyZhang-Microsemiwesleywesley
authored andcommitted
The link_sta is enabled by switchtec_ntb_link_enable() when loading
ntb_transport module. But it will be lost when the peer sends the MSG_LINK_FORCE_DOWN.
1 parent 5c83cc6 commit 9ac6b1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ntb_hw_switchtec.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,16 @@ static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev);
502502

503503
static void link_reinit_work(struct work_struct *work)
504504
{
505+
int link_sta;
505506
struct switchtec_ntb *sndev;
506507

507508
sndev = container_of(work, struct switchtec_ntb, link_reinit_work);
508509

510+
link_sta = sndev->self_shared->link_sta;
511+
509512
switchtec_ntb_reinit_peer(sndev);
513+
514+
sndev->self_shared->link_sta = link_sta;
510515
}
511516

512517
static void switchtec_ntb_check_link(struct switchtec_ntb *sndev,

0 commit comments

Comments
 (0)