Skip to content

Commit

Permalink
NTB: Do not advance transport RX on link down
Browse files Browse the repository at this point in the history
On link down, don't advance RX index to the next entry.  The next entry
should never be valid after receiving the link down flag.

Signed-off-by: Allen Hubbe <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
  • Loading branch information
Allen Hubbe authored and jonmason committed Jul 4, 2015
1 parent e22e0b9 commit c0900b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,8 +1212,7 @@ static int ntb_process_rxc(struct ntb_transport_qp *qp)
dev_dbg(&qp->ndev->pdev->dev, "link down flag set\n");
ntb_qp_link_down(qp);
hdr->flags = 0;
iowrite32(qp->rx_index, &qp->rx_info->entry);
return 0;
return -EAGAIN;
}

if (hdr->ver != (u32)qp->rx_pkts) {
Expand Down

0 comments on commit c0900b3

Please sign in to comment.