diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2014-04-01 09:28:40 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-04-01 14:09:46 -0400 |
commit | 4f9208ad3f6625f707210c00c7e7f7a0f688d019 (patch) | |
tree | 53811d171d83b18357848900f27a61975561aa43 /drivers/infiniband/ulp/iser | |
parent | 4667f5dfb0c36a86339652aca694736ebc590871 (diff) |
IB/iser: Print QP information once connection is established
Add an iser info print with the local/remote QP information carried
out when the connection is established. While here, fix a little
leftover from the T10 work and set a debug print to be carried in
debug and not info level.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index b3668a59ca8d..b6ff08e85084 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c | |||
@@ -340,8 +340,8 @@ iser_create_fastreg_desc(struct ib_device *ib_device, struct ib_pd *pd, | |||
340 | } | 340 | } |
341 | desc->reg_indicators &= ~ISER_FASTREG_PROTECTED; | 341 | desc->reg_indicators &= ~ISER_FASTREG_PROTECTED; |
342 | 342 | ||
343 | iser_info("Create fr_desc %p page_list %p\n", | 343 | iser_dbg("Create fr_desc %p page_list %p\n", |
344 | desc, desc->data_frpl->page_list); | 344 | desc, desc->data_frpl->page_list); |
345 | 345 | ||
346 | return 0; | 346 | return 0; |
347 | sig_mr_failure: | 347 | sig_mr_failure: |
@@ -728,6 +728,11 @@ failure: | |||
728 | static void iser_connected_handler(struct rdma_cm_id *cma_id) | 728 | static void iser_connected_handler(struct rdma_cm_id *cma_id) |
729 | { | 729 | { |
730 | struct iser_conn *ib_conn; | 730 | struct iser_conn *ib_conn; |
731 | struct ib_qp_attr attr; | ||
732 | struct ib_qp_init_attr init_attr; | ||
733 | |||
734 | (void)ib_query_qp(cma_id->qp, &attr, ~0, &init_attr); | ||
735 | iser_info("remote qpn:%x my qpn:%x\n", attr.dest_qp_num, cma_id->qp->qp_num); | ||
731 | 736 | ||
732 | ib_conn = (struct iser_conn *)cma_id->context; | 737 | ib_conn = (struct iser_conn *)cma_id->context; |
733 | ib_conn->state = ISER_CONN_UP; | 738 | ib_conn->state = ISER_CONN_UP; |