Commit c0900b33 authored by Allen Hubbe's avatar Allen Hubbe Committed by Jon Mason

NTB: Do not advance transport RX on link down

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: default avatarAllen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent e22e0b9d
...@@ -1212,8 +1212,7 @@ static int ntb_process_rxc(struct ntb_transport_qp *qp) ...@@ -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"); dev_dbg(&qp->ndev->pdev->dev, "link down flag set\n");
ntb_qp_link_down(qp); ntb_qp_link_down(qp);
hdr->flags = 0; hdr->flags = 0;
iowrite32(qp->rx_index, &qp->rx_info->entry); return -EAGAIN;
return 0;
} }
if (hdr->ver != (u32)qp->rx_pkts) { if (hdr->ver != (u32)qp->rx_pkts) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment