summaryrefslogtreecommitdiffstats
path: root/drivers/ntb/ntb_transport.c
diff options
context:
space:
mode:
authorAllen Hubbe <Allen.Hubbe@emc.com>2015-05-12 12:24:27 +0200
committerJon Mason <jdmason@kudzu.us>2015-07-04 20:06:24 +0200
commitc0900b33d1c8c24246eaedb9553f078024c332fc (patch)
tree8d382fbe6b459d012aac37005db58e83117ddbd3 /drivers/ntb/ntb_transport.c
parentNTB: Differentiate transport link down messages (diff)
downloadlinux-c0900b33d1c8c24246eaedb9553f078024c332fc.tar.xz
linux-c0900b33d1c8c24246eaedb9553f078024c332fc.zip
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: Allen Hubbe <Allen.Hubbe@emc.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/ntb_transport.c')
-rw-r--r--drivers/ntb/ntb_transport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 8d9b59f7fa07..0f86b60a0c0e 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -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) {