aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2015-06-11 09:35:21 -0400
committerDoug Ledford <dledford@redhat.com>2015-06-12 14:49:10 -0400
commit8e37210b38fb7d6aa06aebde763316ee955d44c0 (patch)
tree2ef8854af886906e1901e7c6f0b93a28ae515c6e /net/9p
parentbcf4c1ea583cd213f0bafdbeb11d80f83c5f10e6 (diff)
IB/core: Change ib_create_cq to use struct ib_cq_init_attr
Currently, ib_create_cq uses cqe and comp_vecotr instead of the extendible ib_cq_init_attr struct. Earlier patches already changed the vendors to work with ib_cq_init_attr. This patch changes the consumers too. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/trans_rdma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c
index 3533d2a53ab6..37a78d20c0f6 100644
--- a/net/9p/trans_rdma.c
+++ b/net/9p/trans_rdma.c
@@ -648,6 +648,7 @@ rdma_create_trans(struct p9_client *client, const char *addr, char *args)
648 struct rdma_conn_param conn_param; 648 struct rdma_conn_param conn_param;
649 struct ib_qp_init_attr qp_attr; 649 struct ib_qp_init_attr qp_attr;
650 struct ib_device_attr devattr; 650 struct ib_device_attr devattr;
651 struct ib_cq_init_attr cq_attr = {};
651 652
652 /* Parse the transport specific mount options */ 653 /* Parse the transport specific mount options */
653 err = parse_opts(args, &opts); 654 err = parse_opts(args, &opts);
@@ -705,9 +706,10 @@ rdma_create_trans(struct p9_client *client, const char *addr, char *args)
705 goto error; 706 goto error;
706 707
707 /* Create the Completion Queue */ 708 /* Create the Completion Queue */
709 cq_attr.cqe = opts.sq_depth + opts.rq_depth + 1;
708 rdma->cq = ib_create_cq(rdma->cm_id->device, cq_comp_handler, 710 rdma->cq = ib_create_cq(rdma->cm_id->device, cq_comp_handler,
709 cq_event_handler, client, 711 cq_event_handler, client,
710 opts.sq_depth + opts.rq_depth + 1, 0); 712 &cq_attr);
711 if (IS_ERR(rdma->cq)) 713 if (IS_ERR(rdma->cq))
712 goto error; 714 goto error;
713 ib_req_notify_cq(rdma->cq, IB_CQ_NEXT_COMP); 715 ib_req_notify_cq(rdma->cq, IB_CQ_NEXT_COMP);