Message ID | 20160614175333.853CCE0753@smtp.ogc.us (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
On Sun, Jun 12, 2016 at 11:53:17PM -0700, Steve Wise wrote: > Instead, check the private data length to determine if there > is private data in the reject. > > Signed-off-by: Steve Wise <swise@opengridcomputing.com> Thanks Steve, applied. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 7506431..e1205c0 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -1208,7 +1208,7 @@ out_destroy_queue_ib: static int nvme_rdma_conn_rejected(struct nvme_rdma_queue *queue, struct rdma_cm_event *ev) { - if (ev->status == IB_CM_REJ_CONSUMER_DEFINED) { + if (ev->param.conn.private_data_len) { struct nvme_rdma_cm_rej *rej = (struct nvme_rdma_cm_rej *)ev->param.conn.private_data;
Instead, check the private data length to determine if there is private data in the reject. Signed-off-by: Steve Wise <swise@opengridcomputing.com> --- drivers/nvme/host/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)