diff mbox series

[v3,2/4] ibacm: Print correct pkey

Message ID 20190201164557.234039-3-haakon.bugge@oracle.com (mailing list archive)
State Superseded
Headers show
Series ibacm: Replace ioctl with netlink and fix inablity to resurrect an interface | expand

Commit Message

Haakon Bugge Feb. 1, 2019, 4:45 p.m. UTC
In commit 0161b49e3e1e ("ibacm: Unable to assign EP name for limited
pkey"), a fix was introduced enabling an ipoib interface to be
associated with its corresponding IB port, when a limited pkey was
used.

Said commit missed to change the debug print, such that the real pkey
was printed.

Fixes: 0161b49e3e1e ("ibacm: Unable to assign EP name for limited pkey")
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>

---

v1 -> v2:
   * Added Ira's r-b
   * Removed Gerrit's Change-Id tag (Håkon)
---
 ibacm/src/acm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ibacm/src/acm.c b/ibacm/src/acm.c
index e8d50a4a..a05a3cc0 100644
--- a/ibacm/src/acm.c
+++ b/ibacm/src/acm.c
@@ -2090,7 +2090,7 @@  static void acm_ep_ip_iter_cb(char *ifname, union ibv_gid *gid, uint16_t pkey,
 		(ep->endpoint.pkey | IB_PKEY_FULL_MEMBER) == pkey) {
 		if (!acm_ep_insert_addr(ep, ip_str, addr, addr_type)) {
 			acm_log(0, "Added %s %s %d 0x%x from %s\n", ip_str,
-				dev->device.verbs->device->name, port_num, pkey,
+				dev->device.verbs->device->name, port_num, ep->endpoint.pkey,
 				ifname);
 		}
 	}