Skip to content

Commit

Permalink
The link_sta is enabled by switchtec_ntb_link_enable() when loading
Browse files Browse the repository at this point in the history
ntb_transport module. But it will be lost when the peer sends the
MSG_LINK_FORCE_DOWN.
  • Loading branch information
JoeyZhang-Microsemi authored and wesleywesley committed Aug 9, 2018
1 parent ed529cc commit 49e1c67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ntb_hw_switchtec.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,16 @@ static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev);

static void link_reinit_work(struct work_struct *work)
{
int link_sta;
struct switchtec_ntb *sndev;

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

link_sta = sndev->self_shared->link_sta;

switchtec_ntb_reinit_peer(sndev);

sndev->self_shared->link_sta = link_sta;
}

static void switchtec_ntb_check_link(struct switchtec_ntb *sndev,
Expand Down

0 comments on commit 49e1c67

Please sign in to comment.