IB/mlx4: In mlx4_ib_demux_cm, print out GUID in host-endian order
If a GUID is not found, the 64-bit GUID printed in the message log warning should converted to host-endian order for printing. Found by Doug Ledford and Hal Rosenstock. Fix suggested by Hal. Signed-off-by: Hal Rosenstock <hal@dev.mellanox.co.il> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
committed by
Roland Dreier
parent
8ab9406a41
commit
98e8be8693
@@ -372,7 +372,7 @@ int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave,
|
|||||||
*slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id);
|
*slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id);
|
||||||
if (*slave < 0) {
|
if (*slave < 0) {
|
||||||
mlx4_ib_warn(ibdev, "failed matching slave_id by gid (0x%llx)\n",
|
mlx4_ib_warn(ibdev, "failed matching slave_id by gid (0x%llx)\n",
|
||||||
gid.global.interface_id);
|
be64_to_cpu(gid.global.interface_id));
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user