diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2015-01-29 09:41:43 +0100 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2015-02-18 07:11:40 +0100 |
commit | 98e8be869386eb01439d4ee95c821aa00bdf7f2a (patch) | |
tree | b0962b3a84846466538d4c9b524a28c1b7073936 /drivers/infiniband/hw/mlx4/cm.c | |
parent | IB/mlx4: Bug fixes in mlx4_ib_resize_cq (diff) | |
download | linux-98e8be869386eb01439d4ee95c821aa00bdf7f2a.tar.xz linux-98e8be869386eb01439d4ee95c821aa00bdf7f2a.zip |
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/cm.c')
-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, *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); if (*slave < 0) { 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 0; |