diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2015-01-29 03:41:43 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2015-02-18 01:11:40 -0500 |
commit | 98e8be869386eb01439d4ee95c821aa00bdf7f2a (patch) | |
tree | b0962b3a84846466538d4c9b524a28c1b7073936 /drivers/infiniband/hw/mlx4 | |
parent | 8ab9406a41c8245dbab16e65ada51b62182a463e (diff) |
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>
Diffstat (limited to 'drivers/infiniband/hw/mlx4')
-rw-r--r-- | drivers/infiniband/hw/mlx4/cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/cm.c b/drivers/infiniband/hw/mlx4/cm.c index 56a593e0ae5d..39a488889fc7 100644 --- a/drivers/infiniband/hw/mlx4/cm.c +++ b/drivers/infiniband/hw/mlx4/cm.c | |||
@@ -372,7 +372,7 @@ int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, | |||
372 | *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); | 372 | *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); |
373 | if (*slave < 0) { | 373 | if (*slave < 0) { |
374 | mlx4_ib_warn(ibdev, "failed matching slave_id by gid (0x%llx)\n", | 374 | mlx4_ib_warn(ibdev, "failed matching slave_id by gid (0x%llx)\n", |
375 | gid.global.interface_id); | 375 | be64_to_cpu(gid.global.interface_id)); |
376 | return -ENOENT; | 376 | return -ENOENT; |
377 | } | 377 | } |
378 | return 0; | 378 | return 0; |