diff mbox series

[2/4] ibacm: Print correct pkey

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

Commit Message

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

Comments

Ira Weiny Jan. 25, 2019, 6:03 p.m. UTC | #1
On Thu, Jan 24, 2019 at 03:47:36PM +0100, Håkon Bugge wrote:
> 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@oracle.com>

Reviewed-by: Ira Weiny <ira.weiny@intel.com>

> ---
>  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
>
Haakon Bugge Jan. 25, 2019, 6:21 p.m. UTC | #2
> On 25 Jan 2019, at 19:03, Ira Weiny <ira.weiny@intel.com> wrote:
> 
> On Thu, Jan 24, 2019 at 03:47:36PM +0100, Håkon Bugge wrote:
>> 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@oracle.com>
> 
> Reviewed-by: Ira Weiny <ira.weiny@intel.com>

Thank you!


Håkon
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);
 		}
 	}