Skip to content

Commit

Permalink
IB/iser: Print QP information once connection is established
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Or Gerlitz authored and Roland Dreier committed Apr 1, 2014
1 parent 4667f5d commit 4f9208a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions drivers/infiniband/ulp/iser/iser_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ iser_create_fastreg_desc(struct ib_device *ib_device, struct ib_pd *pd,
}
desc->reg_indicators &= ~ISER_FASTREG_PROTECTED;

iser_info("Create fr_desc %p page_list %p\n",
desc, desc->data_frpl->page_list);
iser_dbg("Create fr_desc %p page_list %p\n",
desc, desc->data_frpl->page_list);

return 0;
sig_mr_failure:
Expand Down Expand Up @@ -728,6 +728,11 @@ static int iser_route_handler(struct rdma_cm_id *cma_id)
static void iser_connected_handler(struct rdma_cm_id *cma_id)
{
struct iser_conn *ib_conn;
struct ib_qp_attr attr;
struct ib_qp_init_attr init_attr;

(void)ib_query_qp(cma_id->qp, &attr, ~0, &init_attr);
iser_info("remote qpn:%x my qpn:%x\n", attr.dest_qp_num, cma_id->qp->qp_num);

ib_conn = (struct iser_conn *)cma_id->context;
ib_conn->state = ISER_CONN_UP;
Expand Down

0 comments on commit 4f9208a

Please sign in to comment.