net/mlx4_core: Fix sl_to_vl_change bit offset in flags2 dump
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 1 Aug 2017 13:43:44 +0000 (16:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 17:44:09 +0000 (10:44 -0700)
commit5886259c127026ee4a6a7093d6c320440d833fda
tree5ae5aa63f2f9ffeb013e08a8b23ee76c0081e710
parentc994f778bb1cca8ebe7a4e528cefec233e93b5cc
net/mlx4_core: Fix sl_to_vl_change bit offset in flags2 dump

The index value in function dump_dev_cap_flags2() for outputting
"sl to vl mapping table change event support" needs to be
consistent with the value of the enumerated constant
MLX4_DEV_CAP_FLAG2_SL_TO_VL_CHANGE_EVENT defined in file
include/linux/mlx4_device.h

The change here restores that consistency.

Fixes: fd10ed8e6f42 ("IB/mlx4: Fix possible vl/sl field mismatch in LRH header in QP1 packets")
Reported-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c