struct ntb_softc *ntb = nt->ntb;
int i;
- nt->transport_link = NTB_LINK_DOWN;
+ ntb_transport_link_cleanup(nt);
callout_drain(&nt->link_work);
{
int i;
- if (nt->transport_link == NTB_LINK_DOWN)
- callout_drain(&nt->link_work);
- else
- nt->transport_link = NTB_LINK_DOWN;
-
/* Pass along the info to any clients */
for (i = 0; i < nt->max_qps; i++)
if (!test_bit(i, &nt->qp_bitmap))
ntb_qp_link_down(&nt->qps[i]);
+ if (nt->transport_link == NTB_LINK_DOWN)
+ callout_drain(&nt->link_work);
+ else
+ nt->transport_link = NTB_LINK_DOWN;
+
/*
* The scratchpad registers keep the values if the remote side
* goes down, blast them now to give them a sane value the next