From 8cbf658bf7982e5f057f73349ec6bf993c13bc1c Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Fri, 24 Jul 2015 12:48:52 -0700 Subject: [PATCH] mcm: provide MIC address info with proxy device open Signed-off-by: Arlin Davis --- dapl/openib_mcm/mix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dapl/openib_mcm/mix.c b/dapl/openib_mcm/mix.c index 87fac98..334c6c6 100644 --- a/dapl/openib_mcm/mix.c +++ b/dapl/openib_mcm/mix.c @@ -160,6 +160,8 @@ int dapli_mix_open(ib_hca_transport_t *tp, char *name, int port, int query_only) msg.dev_attr.pkey = tp->ib_cm.pkey; msg.dev_attr.max_inline = tp->ib_cm.max_inline; + memcpy(&msg.dev_addr, &tp->addr, sizeof(dat_mcm_addr_t)); + len = sizeof(dat_mix_open_t); ret = scif_send(tp->scif_ep, &msg, len, SCIF_SEND_BLOCK); if (ret != len) { @@ -209,9 +211,9 @@ int dapli_mix_open(ib_hca_transport_t *tp, char *name, int port, int query_only) tp->dev_id = msg.hdr.req_id; dapl_log(DAPL_DBG_TYPE_EXTENSION, - " mix_open reply (msg %p, ln %d) EPs %d %d %d - dev_id %d\n", + " mix_open reply (msg %p, ln %d) EPs %d %d %d - dev_id %d lid 0x%x\n", &msg, len, tp->scif_ep, tp->scif_ev_ep, - tp->scif_tx_ep, tp->dev_id); + tp->scif_tx_ep, tp->dev_id, ntohs(tp->addr.lid)); return 0; } -- 2.46.0