[PATCH 2/4] ibacm: Print correct pkey

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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")
Change-Id: I5ec20a4a36d4e822cae0b906dd480dcf681ea0b5
Signed-off-by: Håkon Bugge <haakon.bugge@xxxxxxxxxx>
---
 ibacm/src/acm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 		}
 	}
-- 
2.20.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux